OSEC

Neohapsis is currently accepting applications for employment. For more information, please visit our website www.neohapsis.com or email hr@neohapsis.com
 
From: php-general-digest-helplists.php.net
Date: Mon Aug 27 2001 - 03:34:31 CDT

  • Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

    php-general Digest 27 Aug 2001 08:34:31 -0000 Issue 840

    Topics (messages 64528 through 64578):

    Re: Thinking about going to ASP
            64528 by: Michael Kimsal

    Re: How to create thumbnails?
            64529 by: Seb Frost

    ftp_get
            64530 by: MBK
            64545 by: Chris Lambert
            64564 by: MBK
            64565 by: Chris Lambert

    Eregi for Image
            64531 by: Jeff Oien
            64532 by: jimw.apache.org
            64547 by: Chris Lambert

    PHP auth logout
            64533 by: Alex Sofronie

    MySQL Database backup
            64534 by: Alex Sofronie
            64546 by: Chris Lambert

    Re: Need help to create HTML table with 2 columns.
            64535 by: Alex Sofronie

    Re: The future of PHP
            64536 by: Manuel Lemos
            64554 by: Zeev Suraski
            64575 by: Robin Chen

    Re: How to show specific records of a Dbase file
            64537 by: Hugh Bothwell
            64542 by: Er Galvão Abbott
            64544 by: Er Galvão Abbott

    mkdir Question
            64538 by: Jeff Oien
            64539 by: Gianluca Baldo
            64540 by: Jeff Oien
            64548 by: Chris Lambert
            64560 by: Javi - NeoDigit

    windows media player
            64541 by: Heidi Belal

    Certification
            64543 by: Christian Dechery
            64549 by: Chris Lambert
            64557 by: Christian Dechery
            64573 by: pierre-yves

    Re: Shell or http?
            64550 by: Chris Lambert
            64551 by: George E. Papadakis
            64561 by: Chris Lambert

    Re: send mail to mailing list using mail() or smtp?
            64552 by: Richard Lynch

    Re: HELP!!!
            64553 by: Richard Lynch

    can you prompt for variables in command-line CGI?
            64555 by: Derek Sivers
            64563 by: Chris Lambert

    What is it with _vti?
            64556 by: Seb Frost
            64558 by: Hugh Bothwell
            64559 by: Seb Frost
            64562 by: Hugh Bothwell
            64568 by: Roeland Meyer

    getting values inside PHP from outside script
            64566 by: Scott Mebberson
            64569 by: Chris Lambert

    Session not timing outafter 180 minutes
            64567 by: jeff fitzmyers

    Re: Dedicated Hosting
            64570 by: Raphael Pirker
            64571 by: Chris Lambert

    incorrect Timezone using mail() -- HELP!
            64572 by: Jeffrey Iskandar Ahmad

    Re: Error while passing parameters as path
            64574 by: Anas Mughal
            64578 by: Rasmus Lerdorf

    Re: path to php
            64576 by: David Robley

    Cookieless =(
            64577 by: Andy Ladouceur

    Administrivia:

    To subscribe to the digest, e-mail:
            php-general-digest-subscribelists.php.net

    To unsubscribe from the digest, e-mail:
            php-general-digest-unsubscribelists.php.net

    To post to the list, e-mail:
            php-generallists.php.net

    ----------------------------------------------------------------------

    attached mail follows:


    ReDucTor wrote:

    >Just looking over the achives of the .net show(was msdn show), and with .net
    >its got some really great features..
    >
    >So i am going to get a hold of .net and try it out...
    >
    > - James "ReDucTor" Mitchell
    >
    >
    Quite an open ended post - not sure exactly what type of reaction you're
    looking for from the group here. :)

    Could you be more explicit about some of the "really great features" it has?

    include() is a "really great feature" of PHP which somehow seems to get
    lost
    in the ASP/IIS world.

    Give some examples please.

    Thanks.

    Michael Kimsal
    http://www.tapinternet.com/php/
    734-480-9961

    attached mail follows:


    <?php
            Header("Content-type: image/jpeg");

            $src_img = imagecreatefromjpeg($fileURL);

            $aspect=imagesy($src_img)/imagesx($src_img);

            $new_w = $thumbSize;
            $new_h = $new_w * $aspect;

            $dst_img = imagecreate($new_w,$new_h);

    imagecopyresized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,imagesx($src_img),i
    magesy($src_img));

            imagejpeg($dst_img,'',$quality);
    ?>

    All you need to go is set up $fileURL and $thumbSize and this *should* work
    flawlessly. When you get it working try using "Resampled" instead of
    "Resized" - but you need gd 2.0.1 for that to work, and even then it has
    issues it would seem.

    - seb

    -----Original Message-----
    From: Jan [mailto:vincevgmx.de]
    Sent: 26 August 2001 18:22
    To: php-generallists.php.net
    Subject: [PHP] How to create thumbnails?

    For thumbnail creation I would need to know how I scale a loaded image or
    better:
    How do I copy a scaled version of an image created with imagecreatefromjpeg
    onto a background I have previously created?

    Jan

    attached mail follows:


    How exactly does ftp_get work?

    I tried it several times, but it always said something like
    Warning: error opening /web/destinationfile.html in .scriptlocation.. on line 38

    line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY);

    Can someone please help me with this.

    -Maarten

    attached mail follows:


    It looks like you might not have permissions set for the web server to
    create files in /web/...

    If you know the names of the files which will be transferred ahead of time,
    you can manually create them from FTP or your shell, then chmod them to 777.
    Otherwise you might be better off creating a folder (/web/ftp/) and chmoding
    the folder itself to 777.

    /* Chris Lambert, CTO - chriswhitecrown.net
    WhiteCrown Networks - More Than White Hats
    Web Application Security - www.whitecrown.net
    */

    ----- Original Message -----
    From: MBK <mbktmteam.nl>
    To: <php-generallists.php.net>
    Sent: Sunday, August 26, 2001 2:51 PM
    Subject: [PHP] ftp_get

    How exactly does ftp_get work?

    I tried it several times, but it always said something like
    Warning: error opening /web/destinationfile.html in .scriptlocation.. on
    line 38

    line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY);

    Can someone please help me with this.

    -Maarten

    attached mail follows:


    The user i use to login has full permissions
    When i login with an ordinary ftp client using that user, then i can do
    anything.
    I think when there is a permission problem the error would say that.

    ----- Original Message -----
    From: "Chris Lambert" <chrisphp.net>
    To: "MBK" <mbktmteam.nl>
    Cc: <php-generallists.php.net>
    Sent: Sunday, August 26, 2001 11:50 PM
    Subject: Re: [PHP] ftp_get

    > It looks like you might not have permissions set for the web server to
    > create files in /web/...
    >
    > If you know the names of the files which will be transferred ahead of
    time,
    > you can manually create them from FTP or your shell, then chmod them to
    777.
    > Otherwise you might be better off creating a folder (/web/ftp/) and
    chmoding
    > the folder itself to 777.
    >
    > /* Chris Lambert, CTO - chriswhitecrown.net
    > WhiteCrown Networks - More Than White Hats
    > Web Application Security - www.whitecrown.net
    > */
    >
    > ----- Original Message -----
    > From: MBK <mbktmteam.nl>
    > To: <php-generallists.php.net>
    > Sent: Sunday, August 26, 2001 2:51 PM
    > Subject: [PHP] ftp_get
    >
    >
    > How exactly does ftp_get work?
    >
    > I tried it several times, but it always said something like
    > Warning: error opening /web/destinationfile.html in .scriptlocation.. on
    > line 38
    >
    > line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY);
    >
    > Can someone please help me with this.
    >
    > -Maarten
    >
    >

    attached mail follows:


    No, the permission problem would be local (hence the error referencing the
    destination file). It has nothing to do with FTP permissions, but the web
    server's permission to write the file to /web/.

    /* Chris Lambert, CTO - chriswhitecrown.net
    WhiteCrown Networks - More Than White Hats
    Web Application Security - www.whitecrown.net
    */

    ----- Original Message -----
    From: MBK <mbktmteam.nl>
    To: <php-generallists.php.net>
    Sent: Sunday, August 26, 2001 8:23 PM
    Subject: Re: [PHP] ftp_get

    | The user i use to login has full permissions
    | When i login with an ordinary ftp client using that user, then i can do
    | anything.
    | I think when there is a permission problem the error would say that.
    |
    |
    |
    | ----- Original Message -----
    | From: "Chris Lambert" <chrisphp.net>
    | To: "MBK" <mbktmteam.nl>
    | Cc: <php-generallists.php.net>
    | Sent: Sunday, August 26, 2001 11:50 PM
    | Subject: Re: [PHP] ftp_get
    |
    |
    | > It looks like you might not have permissions set for the web server to
    | > create files in /web/...
    | >
    | > If you know the names of the files which will be transferred ahead of
    | time,
    | > you can manually create them from FTP or your shell, then chmod them to
    | 777.
    | > Otherwise you might be better off creating a folder (/web/ftp/) and
    | chmoding
    | > the folder itself to 777.
    | >
    | > /* Chris Lambert, CTO - chriswhitecrown.net
    | > WhiteCrown Networks - More Than White Hats
    | > Web Application Security - www.whitecrown.net
    | > */
    | >
    | > ----- Original Message -----
    | > From: MBK <mbktmteam.nl>
    | > To: <php-generallists.php.net>
    | > Sent: Sunday, August 26, 2001 2:51 PM
    | > Subject: [PHP] ftp_get
    | >
    | >
    | > How exactly does ftp_get work?
    | >
    | > I tried it several times, but it always said something like
    | > Warning: error opening /web/destinationfile.html in .scriptlocation.. on
    | > line 38
    | >
    | > line 38 has: ftp_get($conn_id, $destfile, $remotefile, FTP_BINARY);
    | >
    | > Can someone please help me with this.
    | >
    | > -Maarten
    | >
    | >
    |
    |
    |
    | --
    | PHP General Mailing List (http://www.php.net/)
    | To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    | For additional commands, e-mail: php-general-helplists.php.net
    | To contact the list administrators, e-mail: php-list-adminlists.php.net
    |
    |
    |

    attached mail follows:


    I want to check if an uploaded file is an image. This isn't working.
    Could anyone help me out?

    if (!eregi("\\.gif$", $img1_name) ||
    !eregi("\\.jpg$", $img1_name) ||
    !eregi("\\.jpeg$", $img1_name)) {
            error message
    }

    Jeff Oien

    attached mail follows:


    Jeff Oien <jeffwebdesigns1.com> wrote:
    > I want to check if an uploaded file is an image. This isn't working.
    > Could anyone help me out?
    >
    > if (!eregi("\\.gif$", $img1_name) ||
    > !eregi("\\.jpg$", $img1_name) ||
    > !eregi("\\.jpeg$", $img1_name)) {
    > error message
    > }

    unless you expect the file to have three extensions at once, you
    probably mean && for each of the places you wrote ||.

    or you could do this:

      if (!ereg("\\.(gif|jpe?g)$", $img1_name)) {
        error message
      }

    jim

    attached mail follows:


    The filename solution might not be your best bet. They could've uploaded an
    mp3 which is simply named metallica.mp3.jpg. A call to getimagesize would
    allow you to verify if it is indeed a valid image file.

    /* Chris Lambert, CTO - chriswhitecrown.net
    WhiteCrown Networks - More Than White Hats
    Web Application Security - www.whitecrown.net
    */

    ----- Original Message -----
    From: <jimwapache.org>
    To: <php-generallists.php.net>
    Sent: Sunday, August 26, 2001 5:32 PM
    Subject: [PHP] Re: Eregi for Image

    | Jeff Oien <jeffwebdesigns1.com> wrote:
    | > I want to check if an uploaded file is an image. This isn't working.
    | > Could anyone help me out?
    | >
    | > if (!eregi("\\.gif$", $img1_name) ||
    | > !eregi("\\.jpg$", $img1_name) ||
    | > !eregi("\\.jpeg$", $img1_name)) {
    | > error message
    | > }
    |
    | unless you expect the file to have three extensions at once, you
    | probably mean && for each of the places you wrote ||.
    |
    | or you could do this:
    |
    | if (!ereg("\\.(gif|jpe?g)$", $img1_name)) {
    | error message
    | }
    |
    | jim
    |
    | --
    | PHP General Mailing List (http://www.php.net/)
    | To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    | For additional commands, e-mail: php-general-helplists.php.net
    | To contact the list administrators, e-mail: php-list-adminlists.php.net
    |
    |
    |

    attached mail follows:


    Thanks for all the answers to this question but hitting the back button will
    work, no authorization required to see the pages all over.
    Repost problem:
    I'm having a PHP based auth. It seems that unset($PHP_AUTH_USER) or
    unset($PHP_AUTH_PW) doesn't work. Also, 401 Unauthorized header does not
    work also.
    Is there a way to logout and no back button or the user just have to close
    his browser in order to accomplish this?

    Thanks all, Alex
    maxxmail.dntis.ro

    attached mail follows:


    I tried find a solution to backup a mysql database using php but i didn't
    find anything but the binary file transfer solution (just open and binary
    copy all the files in my database directory). But this is not a desired
    solution because it involves some security holes that I cannot afford.
    Can anyone tell me where can i learn more about this? Or some simple :) and
    security holes free solution?

    Thanks all.
    Alex Sofronie
    maxxmail.dntis.ro

    attached mail follows:


    The easiest way would be to call mysqldump from PHP (system, exec,
    backticks, whatever) and pipe it to a file, all from the command line. This
    would backup the core data in the form of valid MySQL statements. If you
    have several indexes, this method will actually produce smaller files as
    well.

    /* Chris Lambert, CTO - chriswhitecrown.net
    WhiteCrown Networks - More Than White Hats
    Web Application Security - www.whitecrown.net
    */

    ----- Original Message -----
    From: Alex Sofronie <maxxmail.dntis.ro>
    To: PHP General <php-generallists.php.net>
    Sent: Sunday, August 26, 2001 3:28 PM
    Subject: [PHP] MySQL Database backup

    | I tried find a solution to backup a mysql database using php but i didn't
    | find anything but the binary file transfer solution (just open and binary
    | copy all the files in my database directory). But this is not a desired
    | solution because it involves some security holes that I cannot afford.
    | Can anyone tell me where can i learn more about this? Or some simple :)
    and
    | security holes free solution?
    |
    | Thanks all.
    | Alex Sofronie
    | maxxmail.dntis.ro
    |
    |
    | --
    | PHP General Mailing List (http://www.php.net/)
    | To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    | For additional commands, e-mail: php-general-helplists.php.net
    | To contact the list administrators, e-mail: php-list-adminlists.php.net
    |
    |
    |

    attached mail follows:


    Try this:
    printf("<TABLE>");
    while($row=...fetch()) {
        printf("<TR><TD>%s</TD><TD>%s</TD></TR>",$string_variable1,
    $string_variable2);
    }

    ----- Original Message -----
    From: "John Bass" <php_mysql21hotmail.com>
    To: <php-generallists.php.net>
    Sent: Thursday, August 23, 2001 6:29 PM
    Subject: Re: [PHP] Need help to create HTML table with 2 columns.

    > second column should print next record that was returned from the query.
    >
    > Thanks.
    >
    > John
    >
    > >From: "Jeff Lewis" <jeffhyrum.net>
    > >Reply-To: "Jeff Lewis" <jeffhyrum.net>
    > >To: "John Bass" <php_mysql21hotmail.com>, <php-generallists.php.net>
    > >Subject: Re: [PHP] Need help to create HTML table with 2 columns.
    > >Date: Thu, 23 Aug 2001 11:29:36 -0400
    > >
    > >What did you want in the second column? I was just going by what you had
    > >listed below: $row->image_link,
    > > > > > $row->web_url,$row->image_link, $row->web_url);
    > >
    > >
    > >Jeff
    > >----- Original Message -----
    > >From: "John Bass" <php_mysql21hotmail.com>
    > >To: <php-generallists.php.net>
    > >Sent: Thursday, August 23, 2001 11:16 AM
    > >Subject: Re: [PHP] Need help to create HTML table with 2 columns.
    > >
    > >
    > > > Hi,
    > > >
    > > > Thank you for the email. I tried your code, but first column is
    > >printing
    > > > image_link & web_url fields correctly and second column is repeating
    > >values
    > > > of the first column.
    > > >
    > > > Other records or rows are printing same way.
    > > >
    > > > Regards,
    > > >
    > > > John Bass
    > > >
    > > > >From: "Jeff Lewis" <jeffhyrum.net>
    > > > >Reply-To: "Jeff Lewis" <jeffhyrum.net>
    > > > >To: "John Bass" <php_mysql21hotmail.com>,
    <php-generallists.php.net>
    > > > >Subject: Re: [PHP] Need help to create HTML table with 2 columns.
    > > > >Date: Thu, 23 Aug 2001 10:41:08 -0400
    > > > >
    > > > >John,
    > > > >
    > > > >Try this:
    > > > >
    > > > ><TABLE>
    > > > ><?php
    > > > >$query = "SELECT image_link, web_url FROM testdata";
    > > > >$result = mysql_query ($query) or die ("Query Failed");
    > > > >while ($row = mysql_fetch_object ($result))
    > > > > {
    > > > > printf ("<tr><TD>".$row->image_links."<br>".$row->web_url."</TD>
    > > > ><TD>".$row->image_link."<br>".$row->web_url."</tr>\n");
    > > > > }
    > > > > ?>
    > > > > </TABLE>
    > > > >
    > > > >----- Original Message -----
    > > > >From: "John Bass" <php_mysql21hotmail.com>
    > > > >To: <php-generallists.php.net>
    > > > >Sent: Thursday, August 23, 2001 10:30 AM
    > > > >Subject: [PHP] Need help to create HTML table with 2 columns.
    > > > >
    > > > >
    > > > > > Hi All,
    > > > > >
    > > > > > I am trying to generate a table with two columns. Each column
    > >should
    > > > >print
    > > > > > 2 fields named image_link and web_url. Have spent over week
    looking
    > > > > > documentations and trying different coding but nothing is working.
    > >Any
    > > > >help
    > > > > > will be greatly appreciated.
    > > > > >
    > > > > > <TABLE>
    > > > > > <?php
    > > > > > $query = "SELECT image_link, web_url FROM testdata";
    > > > > > $result = mysql_query ($query) or die ("Query Failed");
    > > > > > while ($row = mysql_fetch_object ($result))
    > > > > > {
    > > > > > printf ("<tr><TD>%s<br>%s</TD> <TD>%s<br>%s</tr>\n",
    > >$row->image_link,
    > > > > > $row->web_url,$row->image_link, $row->web_url);
    > > > > > }
    > > > > > ?>
    > > > > > </TABLE>
    > > > > >
    > > > > > Regards,
    > > > > >
    > > > > > John Bass
    > > > > >
    > > > > > _________________________________________________________________
    > > > > > Get your FREE download of MSN Explorer at
    > > > >http://explorer.msn.com/intl.asp
    > > > > >
    > > > > >
    > > > > > --
    > > > > > PHP General Mailing List (http://www.php.net/)
    > > > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > > > > > For additional commands, e-mail: php-general-helplists.php.net
    > > > > > To contact the list administrators, e-mail:
    > >php-list-adminlists.php.net
    > > > > >
    > > > > >
    > > > > >
    > > > >
    > > > >
    > > > >--
    > > > >PHP General Mailing List (http://www.php.net/)
    > > > >To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > > > >For additional commands, e-mail: php-general-helplists.php.net
    > > > >To contact the list administrators, e-mail:
    > >php-list-adminlists.php.net
    > > > >
    > > >
    > > >
    > > > _________________________________________________________________
    > > > Get your FREE download of MSN Explorer at
    > >http://explorer.msn.com/intl.asp
    > > >
    > > >
    > > > --
    > > > PHP General Mailing List (http://www.php.net/)
    > > > To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > > > For additional commands, e-mail: php-general-helplists.php.net
    > > > To contact the list administrators, e-mail:
    php-list-adminlists.php.net
    > > >
    > > >
    > > >
    > >
    >
    >
    > _________________________________________________________________
    > Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
    >
    >
    > --
    > PHP General Mailing List (http://www.php.net/)
    > To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    > For additional commands, e-mail: php-general-helplists.php.net
    > To contact the list administrators, e-mail: php-list-adminlists.php.net
    >

    attached mail follows:


    Hello,

    Zeev Suraski wrote:
    >
    > At 05:36 26-08-01, Manuel Lemos wrote:
    > >The first problem is technical. You just keep developing PHP to satisfy
    > >the user needs as soon as you perceive them and that's it.
    >
    > I think we're doing that nicely, but it's quite true that meeting the
    > technical needs is not enough.

    Right.

     
    > >The second problem is marketing. It doesn't matter for people that have
    > >to make the decisions how much better PHP in fact is if people don't
    > >hear about it. Even if they hear about it, it may not be enough if they
    > >hear much more from the rest (Java, ASP.Net, C#, , whatever).
    > >
    > >Here PHP looses bigtime. You may not want to believe me, but I am afraid
    > >that unless PHP is better marketted, soon or later its market acceptance
    > >will be weakened.
    >
    > I think you're right here also, but only to a degree. PHP has reached (or
    > is quite close) to the critical mess it needs to penetrate the suite of
    > 'accepted solutions'. As in, solutions which are covered by analysts and
    > that exist within large organizations. It's true that it took it some 5
    > years or so to make this penetration (and it took .NET about -2 years), but
    > that is the price you pay when you don't have gigantic marketing budgets to
    > compete with. Undoubtfully this is a problem, but the bottom line appears
    > to be that we managed to overcome this, despite the lack of resources.

    The merit of what was achieved without financial resources is not in
    question. What is in question is what could and can be done even without
    financial resources to make PHP be more accepted than it is today.

    > >That's not my point. Some marketing is better than no marketing at all
    > >which is what you do today. There are plenty of ways to do some
    > >marketing on PHP that don't even cost money to you.
    >
    > I don't think it's fair to say that there's no marketing today. Well,
    > forget fair, but I don't think it's accurate either :) There are several
    > good PHP sites, and there are a few companies advocating PHP as
    > well. Analysts are starting to cover PHP, and it's a fairly important
    > landmark in PHP's penetration to the family of industry-adopted solutions.

    I don't think we have the same understanding of what is marketing. For
    me, marketing is being proactive in terms of promoting something before
    the potential market. Seeing people advocating PHP or analysts covering
    PHP here and there is not proactive at all. It is a result of the
    evolution of PHP capabilities, but it was not something that was
    especifically planned.

    What I mean is there is a large potential market for PHP for which there
    is no specific plan to address, not just in technical terms, but rather
    in the message that that market is (not) getting about PHP suitability
    for their needs.

    You need to first watch the market and spot areas where people could be
    using PHP but their are not, realize why they are not using PHP to
    finally do something about it. As I said, it is not a technical problem,
    but rather a people problem.

     
    > At any rate, suggestions will be welcome. I've seen the Web Developer Ring
    > you suggested, and I think it's worth thinking (the reason I'm not going
    > wild with enthusiasm is that I think it also has drawbacks, not only
    > advantages).

    I don't know what drawbacks do you see, but let's discuss it openly.

     
    > >oh, man Linux was a different story. Expecting a similar future for PHP
    > >I'm afraid it may be wishful thinking. PHP is mostly focused on Web
    > >development. Web market is fading out.
    >
    > I agree with the first part of the paragraph, but completely disagree with
    > the 2nd. Web is not fading out, the .COM era is. Web, as a medium, is
    > here to stay, and on the long run, it's going to grow to be much larger
    > than what it is today.

    Ok, it is not fading out, but it is fading, meaning it is no longer the
    exciting thing that it seemed to be and was attracting some many people
    from everywhere.

     
    > As for the similarities and dissimilarities of PHP and Linux, I think it's
    > fair to say that it's pretty difficult to predict the way things will go
    > with PHP in the enterprise, but I doubt it'll happen in a similar way to
    > that of Linux. Linux 'made it' when huge corporations like IBM started
    > using it and advocating it, after smaller companies (like RedHat) managed
    > to create enough hype to 'wake the giants'. It's unlikely that such a
    > giant will make the same choice with PHP, even if we just look at it from a
    > statistical perspective.

    Right, so be it, PHP will have to grow in the market without any giant
    force behind it, at least for now. Let's consider that one extra
    challenge for PHP future.

     
    > >Even if you can do non Web programming with PHP, most people are not
    > >aware of that. You need to do some marketing to put in evidence that PHP
    > >is as much capable for non-Web programming.
    >
    > Given the fact that I don't see the Web going anywhere, I strongly
    > disagree. PHP's strength is in its focus to provide a good Web development
    > framework. Losing that focus would be a bad idea.

    It is not a matter of loosing that focus, but rather enlarge the focus
    of PHP that is adverstised for things that some people are already using
    it seriously.

    Anyway, lets just concentrate on the Web development focus. Web
    development is not just Web scripts that are served by the Web server.
    Web development is also, installing and maitaining applications and also
    run processes that run separately from the Web server.

    You know you can run PHP from the command line to do things like run
    database installation scripts or run cron scripts that execute periodic
    tasks.

    The truth is that most people are not aware of this. They think PHP can
    only be run from the Web server to serve Web pages. I was suprised by
    the number of people that was telling me that Perl is better for running
    scripts from the command line. Duh?! Why? Because nobody told them
    otherwise! This very wrong perception of the current PHP user base needs
    urgent fixing! The fix needs not to be applied in PHP, but rather in PHP
    users minds. PHP needs to be advertised as tool than can run scripts
    from anywhere, like any other language. For starters, drop the
    designation of PHP CGI version.

    > Projects like PHP-GTK are nice and for certain audiences they're also quite
    > useful, but it's very wrong to assume that PHP's future lies in
    > there. There are too many languages in the world, including ones which are
    > much more capable than PHP in the GUI programming area, and if we move the
    > focus to this front, we're going to fight a lost battle. In the Web front,
    > on the other hand, we're doing quite well.

    If people are already using PHP that way for serious purposes, why
    neglect that it can be used that way? That only lets other languages
    take over a space that PHP has already conquered.

    The way I see, most people tend to only use one language at once. If
    they see an alternative to PHP not only serves well for Web programming,
    but also for non-Web programming, PHP will loose its user base there. It
    is a matter of time until a lot of PHP people will start seeing it that
    way.

     
    > >There you have another big problem that is there is no affordable way to
    > >compile and generate executables from PHP programs. I know that
    > >historically you never liked this ability into PHP programs, but that is
    > >a vital need for people that will want to distribute their programs like
    > >VB or Delphi programs.
    >
    > If you mean native executables, then I have to disagree with you yet
    > again... I don't think native executables are the thing that's holding PHP
    > back. It's a direct deduction from my view that PHP's main course is the
    > Web environment, where native executables simply do not make sense.
    > If you mean something else, I'll be happy to discuss this with you over
    > personal email :)

    No, I mean executables that may be just like VB executables that
    basically contain PHP code compiled into Zend bytecodes or whatever is
    enough for most people be stopped from copy source code directly.

    A lot of people give up PHP because it does not provide affordable
    conditions to let them sell whole applications that others can't still
    their code, when they can just spend only US$100 or less in VB, Delphi,
    Java, Kylix, etc... suite and compile programs that they can distribute
    or sell to others without risking their business.

    There are a lot more other things to say on these subjects, but these
    should give you enough to think for a while. :-)

    Regards,
    Manuel Lemos

    attached mail follows:


    At 23:02 26-08-01, Manuel Lemos wrote:
    >I don't think we have the same understanding of what is marketing. For
    >me, marketing is being proactive in terms of promoting something before
    >the potential market. Seeing people advocating PHP or analysts covering
    >PHP here and there is not proactive at all. It is a result of the
    >evolution of PHP capabilities, but it was not something that was
    >especifically planned.

    Well, that's not quite true. The analysts that are beginning to show
    interest are a result of efforts being made in certain companies. As for
    advocating, I specifically mentioned companies and not people, which is
    what makes it pro-active. I think our definitions for marketing are quite
    similar :)

    > > At any rate, suggestions will be welcome. I've seen the Web Developer Ring
    > > you suggested, and I think it's worth thinking (the reason I'm not going
    > > wild with enthusiasm is that I think it also has drawbacks, not only
    > > advantages).
    >
    >I don't know what drawbacks do you see, but let's discuss it openly.

    Well, not all of the sites are of the same quality and enjoy the same
    maintenance level. Such sites may have a good audience and may be a good
    service, but they won't necessarily do a good job at presenting PHP. They
    may (will) also overlap in content, which would also not look very
    professional either.
    Things like that are usually not that simple, or in other words, they're
    easier said than done. If done sloppily, they can have a negative
    effect. And doing them correctly requires substantial efforts.

    >Ok, it is not fading out, but it is fading, meaning it is no longer the
    >exciting thing that it seemed to be and was attracting some many people
    >from everywhere.

    I disagree even with the toned-down version :) I think that the Web as a
    medium is one of the most promising infrastructures around. True, the hype
    is gone, but that's a good thing. I don't think the hype moved anywhere
    else, it's just gone (for now :)

    >It is not a matter of loosing that focus, but rather enlarge the focus
    >of PHP that is adverstised for things that some people are already using
    >it seriously.

    By definition of the word focus (well, almost), there's no real way to
    'enlarge' it without losing it. We can play with words forever, though :)

    >Anyway, lets just concentrate on the Web development focus. Web
    >development is not just Web scripts that are served by the Web server.
    >Web development is also, installing and maitaining applications and also
    >run processes that run separately from the Web server.
    >
    >You know you can run PHP from the command line to do things like run
    >database installation scripts or run cron scripts that execute periodic
    >tasks.
    >
    >The truth is that most people are not aware of this. They think PHP can
    >only be run from the Web server to serve Web pages. I was suprised by
    >the number of people that was telling me that Perl is better for running
    >scripts from the command line. Duh?! Why? Because nobody told them
    >otherwise! This very wrong perception of the current PHP user base needs
    >urgent fixing! The fix needs not to be applied in PHP, but rather in PHP
    >users minds. PHP needs to be advertised as tool than can run scripts
    >from anywhere, like any other language. For starters, drop the
    >designation of PHP CGI version.

    Could be. The truth is that PHP *is* lacking in command line features if
    you compare it to Perl, because it was indeed never brought up to be a
    command line tool...

    >If people are already using PHP that way for serious purposes, why
    >neglect that it can be used that way? That only lets other languages
    >take over a space that PHP has already conquered.

    I'm not saying it won't happen, but I've yet to see projects like PHP-GTK
    being used 'seriously'. To make it clearer, I've yet to see an application
    which is actually written in PHP-GTK, and is being distributed or
    sold. The day may come, but unlike the Web ring where we hold a huge
    chunk, I find it very hard to imagine seeing PHP taking a considerable
    chunk of the GUI market, ever.

    >The way I see, most people tend to only use one language at once. If
    >they see an alternative to PHP not only serves well for Web programming,
    >but also for non-Web programming, PHP will loose its user base there. It
    >is a matter of time until a lot of PHP people will start seeing it that
    >way.

    It's really an issue of different opinions. I think our focus should
    remain on the Web ring, because we can't enlarge it without losing it. We
    can foster additional projects, such as PHP-GTK, improved command line
    features, etc., but the way I see it, if you want to define PHP in one
    sentence, the best qualifying one would still be 'A Server Side, HTML
    Embedded Scripting Language' (sorry Andrei ;). It's true that it can be
    used in other ways, but that's the focus, and the rest are useful 'exceptions'.

    >No, I mean executables that may be just like VB executables that
    >basically contain PHP code compiled into Zend bytecodes or whatever is
    >enough for most people be stopped from copy source code directly.
    >
    >A lot of people give up PHP because it does not provide affordable
    >conditions to let them sell whole applications that others can't still
    >their code, when they can just spend only US$100 or less in VB, Delphi,
    >Java, Kylix, etc... suite and compile programs that they can distribute
    >or sell to others without risking their business.
    >
    >There are a lot more other things to say on these subjects, but these
    >should give you enough to think for a while. :-)

    Thank you :)

    Zeev

    attached mail follows:


    This is very true. I have a few ideas that I want to sell, but the only
    way that I can do it with PHP is to give out the source, and the user is
    expected to know how to install PHP and set up the script. If I can
    compile the PHP script, then I can sell the executables. The users
    would only have to copy the package into a directory and use it like a
    cgi, and I won't have to worry about people looking into my codes.

    Having executable takes care of 2 concerns I have if I want to sell a
    solution. First, with an executable, users don't have to install PHP on
    their system to use my solutions. Second, users cannot see my code.

    Robin

    Manuel Lemos wrote:

    >
    > No, I mean executables that may be just like VB executables that
    > basically contain PHP code compiled into Zend bytecodes or whatever is
    > enough for most people be stopped from copy source code directly.
    >
    > A lot of people give up PHP because it does not provide affordable
    > conditions to let them sell whole applications that others can't still
    > their code, when they can just spend only US$100 or less in VB, Delphi,
    > Java, Kylix, etc... suite and compile programs that they can distribute
    > or sell to others without risking their business.
    >
    > There are a lot more other things to say on these subjects, but these
    > should give you enough to think for a while. :-)
    >
    > Regards,
    > Manuel Lemos
    >
    > --

    attached mail follows:


    "Er GalvãO Abbott" <erabbottDONTSPAMterra.com.br> wrote in message
    news:3b892a4e.2765570news.php.net...

    > foreach ($drec as $nome)
    > {
    > echo "$nome<br>";
    > }

    > But I'm trying (unsucessfully) to show only one or two fields of each
    > records..

    Instead of foreach(), try something like
        echo $drec[0].", ".$drec[1];
    (or whichever records it is you want).

    Note: in the PHP documentation, they specifically
    suggest abandoning DBase for any of the free
    SQL databases (MySQL, PostgreSQL, etc).

    attached mail follows:


    When I try with

    for ($x = 1; $x < $quant; $x++)
            {
            $drec = dbase_get_record_with_names($dbf,$x);
            echo "$drec[0].",".$drec[1]<br>"; <- and so on
            }

    It only shows the dots. It doesn't show any of the fields.

    I know that dbf is a very prehistorical solution, but the client still
    uses Fox Pro, so...

    On Sun, 26 Aug 2001 16:05:36 -0400, hugh_bothwellhotmail.com (Hugh
    Bothwell) wrote:

    >
    >"Er GalvãO Abbott" <erabbottDONTSPAMterra.com.br> wrote in message
    >news:3b892a4e.2765570news.php.net...
    >
    >> foreach ($drec as $nome)
    >> {
    >> echo "$nome<br>";
    >> }
    >
    >> But I'm trying (unsucessfully) to show only one or two fields of each
    >> records..
    >
    >Instead of foreach(), try something like
    > echo $drec[0].", ".$drec[1];
    >(or whichever records it is you want).
    >
    >Note: in the PHP documentation, they specifically
    >suggest abandoning DBase for any of the free
    >SQL databases (MySQL, PostgreSQL, etc).
    >
    >

    attached mail follows:


    I've solved it!

    You have to put the field name of the DBF, not the array position. I
    don't know exactly why, but it worked for me.

    So the code is:

    for ($x = 1; $x < $quant; $x++)
            {
            $drec = dbase_get_record_with_names($dbf,$x);
            echo "$drec[NAME]<br>";
            }

    Thanks a lot for your help!

    Best regards

    On Sun, 26 Aug 2001 16:05:36 -0400, hugh_bothwellhotmail.com (Hugh
    Bothwell) wrote:

    >
    >"Er GalvãO Abbott" <erabbottDONTSPAMterra.com.br> wrote in message
    >news:3b892a4e.2765570news.php.net...
    >
    >> foreach ($drec as $nome)
    >> {
    >> echo "$nome<br>";
    >> }
    >
    >> But I'm trying (unsucessfully) to show only one or two fields of each
    >> records..
    >
    >Instead of foreach(), try something like
    > echo $drec[0].", ".$drec[1];
    >(or whichever records it is you want).
    >
    >Note: in the PHP documentation, they specifically
    >suggest abandoning DBase for any of the free
    >SQL databases (MySQL, PostgreSQL, etc).
    >
    >

    attached mail follows:


    When using this command:
    mkdir ("/usr/www/users/xxxx/blah/blah/$username", 0777);
    it sets it to nobody instead of my username. I'm then unable
    to delete or modify files in that directory. Is there a way around
    this? Thanks.
    Jeff Oien

    attached mail follows:


    Jeff
    JO> mkdir ("/usr/www/users/xxxx/blah/blah/$username", 0777);
    JO> it sets it to nobody instead of my username.
    "Nobody" is the user runng the Apache process that's why it is the owner
    of the directory.
    You can "chown" the direcotry from your PHP script after you create
    it or "chmod" the files you copy there.

    Cheers,
           Gianluca

           
    JO> I'm then unable
    JO> to delete or modify files in that directory. Is there a way around
    JO> this? Thanks.
    JO> Jeff Oien

    --
    ALBASOFTWARE
    C/ Mallorca 186 - 3º 1ª
    08036 Barcelona (Spain)
    Tel. +34 93454009 - +34 934549324
    Fax. +34 934541979
     ICQ 47323154 
    webmasteralbasoftware.com
    http://www.albasoftware.com
    http://www.phpauction.org
    http://www.gianlucabaldo.com
    

    attached mail follows:


    However even the permission of 0777 doesn't let me do anything to the directory or files in it. I can't even chown or chmod anything in it using Telnet once it's created. Jeff Oien

    > Jeff > JO> mkdir ("/usr/www/users/xxxx/blah/blah/$username", 0777); > JO> it sets it to nobody instead of my username. > "Nobody" is the user runng the Apache process that's why it is the owner > of the directory. > You can "chown" the direcotry from your PHP script after you create > it or "chmod" the files you copy there. > > Cheers, > Gianluca > > > JO> I'm then unable > JO> to delete or modify files in that directory. Is there a way around > JO> this? Thanks. > JO> Jeff Oien > > > > > -- > ALBASOFTWARE > C/ Mallorca 186 - 3º 1ª > 08036 Barcelona (Spain) > Tel. +34 93454009 - +34 934549324 > Fax. +34 934541979 > ICQ 47323154 > webmasteralbasoftware.com > http://www.albasoftware.com > http://www.phpauction.org > http://www.gianlucabaldo.com > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Setting the file to have 0777 permissions will allow you to read and write it from any user on the system. However, it doesn't allow you to change the ownership (or the permissions) unless you're its creator. Giancula suggested chowning the file from within your PHP script, as you're still directing from user "nobody".

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: Jeff Oien <jeffwebdesigns1.com> To: PHP <php-generallists.php.net> Sent: Sunday, August 26, 2001 4:41 PM Subject: RE: [PHP] mkdir Question

    | However even the permission of 0777 doesn't let me do anything to | the directory or files in it. I can't even chown or chmod anything in | it using Telnet once it's created. | Jeff Oien | | > Jeff | > JO> mkdir ("/usr/www/users/xxxx/blah/blah/$username", 0777); | > JO> it sets it to nobody instead of my username. | > "Nobody" is the user runng the Apache process that's why it is the owner | > of the directory. | > You can "chown" the direcotry from your PHP script after you create | > it or "chmod" the files you copy there. | > | > Cheers, | > Gianluca | > | > | > JO> I'm then unable | > JO> to delete or modify files in that directory. Is there a way around | > JO> this? Thanks. | > JO> Jeff Oien | > | > | > | > | > -- | > ALBASOFTWARE | > C/ Mallorca 186 - 3º 1ª | > 08036 Barcelona (Spain) | > Tel. +34 93454009 - +34 934549324 | > Fax. +34 934541979 | > ICQ 47323154 | > webmasteralbasoftware.com | > http://www.albasoftware.com | > http://www.phpauction.org | > http://www.gianlucabaldo.com | > | > | > -- | > PHP General Mailing List (http://www.php.net/) | > To unsubscribe, e-mail: php-general-unsubscribelists.php.net | > For additional commands, e-mail: php-general-helplists.php.net | > To contact the list administrators, e-mail: php-list-adminlists.php.net | > | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    I 've the same problem and I haven´t the solucion so far. I need to create a file with the correct owner, "nobody" is not usefull at all.

    Chown and chmod are not the solution, the solution is create the dir or the file directly with the real owner, I saw a script to do that but I can´t find it again and I´m working in it but I can´t solve it.

    If somebody knows the solution I'd apreciate so much to know it

    Javi

    Chris Lambert <chrisphp.net> escribió en el mensaje de noticias 006901c12e7a$3f566940$6401a8c0server... > Setting the file to have 0777 permissions will allow you to read and write > it from any user on the system. However, it doesn't allow you to change the > ownership (or the permissions) unless you're its creator. Giancula suggested > chowning the file from within your PHP script, as you're still directing > from user "nobody". > > /* Chris Lambert, CTO - chriswhitecrown.net > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.net > */ > > ----- Original Message ----- > From: Jeff Oien <jeffwebdesigns1.com> > To: PHP <php-generallists.php.net> > Sent: Sunday, August 26, 2001 4:41 PM > Subject: RE: [PHP] mkdir Question > > > | However even the permission of 0777 doesn't let me do anything to > | the directory or files in it. I can't even chown or chmod anything in > | it using Telnet once it's created. > | Jeff Oien > | > | > Jeff > | > JO> mkdir ("/usr/www/users/xxxx/blah/blah/$username", 0777); > | > JO> it sets it to nobody instead of my username. > | > "Nobody" is the user runng the Apache process that's why it is the owner > | > of the directory. > | > You can "chown" the direcotry from your PHP script after you create > | > it or "chmod" the files you copy there. > | > > | > Cheers, > | > Gianluca > | > > | > > | > JO> I'm then unable > | > JO> to delete or modify files in that directory. Is there a way around > | > JO> this? Thanks. > | > JO> Jeff Oien > | > > | > > | > > | > > | > -- > | > ALBASOFTWARE > | > C/ Mallorca 186 - 3º 1ª > | > 08036 Barcelona (Spain) > | > Tel. +34 93454009 - +34 934549324 > | > Fax. +34 934541979 > | > ICQ 47323154 > | > webmasteralbasoftware.com > | > http://www.albasoftware.com > | > http://www.phpauction.org > | > http://www.gianlucabaldo.com > | > > | > > | > -- > | > PHP General Mailing List (http://www.php.net/) > | > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > | > For additional commands, e-mail: php-general-helplists.php.net > | > To contact the list administrators, e-mail: php-list-adminlists.php.net > | > > | > | > | -- > | PHP General Mailing List (http://www.php.net/) > | To unsubscribe, e-mail: php-general-unsubscribelists.php.net > | For additional commands, e-mail: php-general-helplists.php.net > | To contact the list administrators, e-mail: php-list-adminlists.php.net > | > | > | >

    attached mail follows:


    Has anyone done audio and/or video streaming? I'm trying to stream this music file online through windows media player. All i've been able to do is to create a href that will pop up the windows media player and stream the music. I would really like to have the windows media player embedded in the html file. Has anyone done that before? Thanks, Heidi

    ===== Heidi Belal ICQ# 32127109

    A bus stops at a bus station. A train stops at a train station. On my desk I have a work station...

    __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

    attached mail follows:


    I know this is a recurrent question around here... but it's always nice to ask:

    Is there (or is it in process of...) any kind of certification for PHP.

    I live in Brazil and have been developing with PHP+Mysql for over a year, but there are no courses around here... none. And in part, it's because there is no certification, or proof of any kind from a respected or well-known organization. ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

    attached mail follows:


    Brainbench offers a PHP certification: http://www.brainbench.com/xml/bb/common/testcenter/subcatresults.xml?cat1=9& cat2=31&cat3=22

    However, I'd contact employers in Brazil and see what their recommendations are in terms of degrees or certifications.

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: Christian Dechery <cdecherybrfree.com.br> To: <php-generallists.php.net> Sent: Sunday, August 26, 2001 4:53 PM Subject: [PHP] Certification

    | I know this is a recurrent question around here... but it's always nice to ask: | | Is there (or is it in process of...) any kind of certification for PHP. | | I live in Brazil and have been developing with PHP+Mysql for over a year, | but there are no courses around here... none. And in part, it's because | there is no certification, or proof of any kind from a respected or | well-known organization. | ____________________________ | . Christian Dechery (lemming) | . http://www.tanamesa.com.br | . Gaita-L Owner / Web Developer | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    I am the employer... :)

    I don't think Brainbench is exactly what I was looking for... but thanks anyway.

    BTW... has anyone taken the Brainbench test? Is it difficult?

    If I were to use it... like, I give a PHP course, and add to the cost the US$ 20. How many hours of PHP do u think it would take the users to get certified?

    At 18:00 26/8/2001 -0400, Chris Lambert wrote: >Brainbench offers a PHP certification: >http://www.brainbench.com/xml/bb/common/testcenter/subcatresults.xml?cat1=9& >cat2=31&cat3=22 > >However, I'd contact employers in Brazil and see what their recommendations >are in terms of degrees or certifications. > >/* Chris Lambert, CTO - chriswhitecrown.net >WhiteCrown Networks - More Than White Hats >Web Application Security - www.whitecrown.net >*/ > >----- Original Message ----- >From: Christian Dechery <cdecherybrfree.com.br> >To: <php-generallists.php.net> >Sent: Sunday, August 26, 2001 4:53 PM >Subject: [PHP] Certification > > >| I know this is a recurrent question around here... but it's always nice to >ask: >| >| Is there (or is it in process of...) any kind of certification for PHP. >| >| I live in Brazil and have been developing with PHP+Mysql for over a year, >| but there are no courses around here... none. And in part, it's because >| there is no certification, or proof of any kind from a respected or >| well-known organization. >| ____________________________ >| . Christian Dechery (lemming) >| . http://www.tanamesa.com.br >| . Gaita-L Owner / Web Developer >| >| >| >| -- >| PHP General Mailing List (http://www.php.net/) >| To unsubscribe, e-mail: php-general-unsubscribelists.php.net >| For additional commands, e-mail: php-general-helplists.php.net >| To contact the list administrators, e-mail: php-list-adminlists.php.net >| >| >|

    ____________________________ . Christian Dechery (lemming) . http://www.tanamesa.com.br . Gaita-L Owner / Web Developer

    attached mail follows:


    > I don't think Brainbench is exactly what I was looking for... but thanks > anyway. > > BTW... has anyone taken the Brainbench test? > Is it difficult?

    I did, it is not that difficult. It can tell you if a future employee really knows PHP. But as an employer myself, I would never rely on such a test to check if a programmer is qualified. I would check general programming knowledge and problem solving, something that these test can't do. (at least not the one I took)

    py

    > At 18:00 26/8/2001 -0400, Chris Lambert wrote: > >Brainbench offers a PHP certification: > >http://www.brainbench.com/xml/bb/common/testcenter/subcatresults.xml?cat1=9 & > >cat2=31&cat3=22 > > > >However, I'd contact employers in Brazil and see what their recommendations > >are in terms of degrees or certifications. > > > >/* Chris Lambert, CTO - chriswhitecrown.net > >WhiteCrown Networks - More Than White Hats > >Web Application Security - www.whitecrown.net > >*/ > > > >----- Original Message ----- > >From: Christian Dechery <cdecherybrfree.com.br> > >To: <php-generallists.php.net> > >Sent: Sunday, August 26, 2001 4:53 PM > >Subject: [PHP] Certification > > > > > >| I know this is a recurrent question around here... but it's always nice to > >ask: > >| > >| Is there (or is it in process of...) any kind of certification for PHP. > >| > >| I live in Brazil and have been developing with PHP+Mysql for over a year, > >| but there are no courses around here... none. And in part, it's because > >| there is no certification, or proof of any kind from a respected or > >| well-known organization. > >| ____________________________ > >| . Christian Dechery (lemming) > >| . http://www.tanamesa.com.br > >| . Gaita-L Owner / Web Developer > >| > >| > >| > >| -- > >| PHP General Mailing List (http://www.php.net/) > >| To unsubscribe, e-mail: php-general-unsubscribelists.php.net > >| For additional commands, e-mail: php-general-helplists.php.net > >| To contact the list administrators, e-mail: php-list-adminlists.php.net > >| > >| > >| > > ____________________________ > . Christian Dechery (lemming) > . http://www.tanamesa.com.br > . Gaita-L Owner / Web Developer > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net > >

    attached mail follows:


    It depends on how the webserver is setup. If its being run as a CGI then it depends if suEXEC is enabled. If its not, it should be run as nobody, whereas if it is (and the user/group paramater in httpd.conf is set) it'll be run as whatever the directive is set to. If its run as a module, then the userid should be nobody. Where are you trying to identify it from?

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: George E. Papadakis <georgepphaistosnetworks.gr> To: PHP List <php-generallists.php.net> Sent: Sunday, August 26, 2001 1:36 PM Subject: [PHP] Shell or http?

    | Hi, | | Is there any way to identify if a php script is running through a shell or | web? | Thanks in advance. | | | -- GeorgeP | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    Thanks for your answer Chris,

    What I want to do is find a way to check if a script is running as a cgi or not. Suppose I am running it from a unix shell (sgi) then I want the script to behave differently than when executed by a Web Server. I was wondering if there is an enviroment/php variable that can help me identify whether the script was sgi or web running. Thanks again.

    --georgep

    ----- Original Message ----- From: "Chris Lambert" <chrisphp.net> To: "George E. Papadakis" <georgepphaistosnetworks.gr> Cc: <php-generallists.php.net> Sent: Monday, August 27, 2001 1:14 AM Subject: Re: [PHP] Shell or http?

    > It depends on how the webserver is setup. If its being run as a CGI then it > depends if suEXEC is enabled. If its not, it should be run as nobody, > whereas if it is (and the user/group paramater in httpd.conf is set) it'll > be run as whatever the directive is set to. If its run as a module, then the > userid should be nobody. Where are you trying to identify it from? > > /* Chris Lambert, CTO - chriswhitecrown.net > WhiteCrown Networks - More Than White Hats > Web Application Security - www.whitecrown.net > */ > > ----- Original Message ----- > From: George E. Papadakis <georgepphaistosnetworks.gr> > To: PHP List <php-generallists.php.net> > Sent: Sunday, August 26, 2001 1:36 PM > Subject: [PHP] Shell or http? > > > | Hi, > | > | Is there any way to identify if a php script is running through a shell or > | web? > | Thanks in advance. > | > | > | -- GeorgeP > | > | > | -- > | PHP General Mailing List (http://www.php.net/) > | To unsubscribe, e-mail: php-general-unsubscribelists.php.net > | For additional commands, e-mail: php-general-helplists.php.net > | To contact the list administrators, e-mail: php-list-adminlists.php.net > | > | > | > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net >

    attached mail follows:


    Look into: http://www.php.net/manual/en/function.get-current-user.php

    If run from the webserver it may return "nobody", and from your shell it'd run as your username.

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: George E. Papadakis <georgepphaistosnetworks.gr> To: Chris Lambert <chrisphp.net> Cc: <php-generallists.php.net> Sent: Sunday, August 26, 2001 6:51 PM Subject: Re: [PHP] Shell or http?

    | Thanks for your answer Chris, | | What I want to do is find a way to check if a script is running as a cgi or | not. | Suppose I am running it from a unix shell (sgi) then I want the script to | behave differently than when executed by a Web Server. I was wondering if | there is an enviroment/php variable that can help me identify whether the | script was sgi or web running. | Thanks again. | | --georgep | | ----- Original Message ----- | From: "Chris Lambert" <chrisphp.net> | To: "George E. Papadakis" <georgepphaistosnetworks.gr> | Cc: <php-generallists.php.net> | Sent: Monday, August 27, 2001 1:14 AM | Subject: Re: [PHP] Shell or http? | | | > It depends on how the webserver is setup. If its being run as a CGI then | it | > depends if suEXEC is enabled. If its not, it should be run as nobody, | > whereas if it is (and the user/group paramater in httpd.conf is set) it'll | > be run as whatever the directive is set to. If its run as a module, then | the | > userid should be nobody. Where are you trying to identify it from? | > | > /* Chris Lambert, CTO - chriswhitecrown.net | > WhiteCrown Networks - More Than White Hats | > Web Application Security - www.whitecrown.net | > */ | > | > ----- Original Message ----- | > From: George E. Papadakis <georgepphaistosnetworks.gr> | > To: PHP List <php-generallists.php.net> | > Sent: Sunday, August 26, 2001 1:36 PM | > Subject: [PHP] Shell or http? | > | > | > | Hi, | > | | > | Is there any way to identify if a php script is running through a shell | or | > | web? | > | Thanks in advance. | > | | > | | > | -- GeorgeP | > | | > | | > | -- | > | PHP General Mailing List (http://www.php.net/) | > | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | > | For additional commands, e-mail: php-general-helplists.php.net | > | To contact the list administrators, e-mail: php-list-adminlists.php.net | > | | > | | > | | > | > | > -- | > PHP General Mailing List (http://www.php.net/) | > To unsubscribe, e-mail: php-general-unsubscribelists.php.net | > For additional commands, e-mail: php-general-helplists.php.net | > To contact the list administrators, e-mail: php-list-adminlists.php.net | > | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    Look at some sample (or just *use*) scripts like the mail class at UpperDesign.com

    You just fsockopen to your SMTP server port 25, and fread/fwrite the interchange that is required by RFCs to "talk" nicely to SMTP.

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: Niklas Lampen <niklas.lampenluukku.com>
    To: 'Richard Lynch' <ceol-i-e.com>; <php-generallists.php.net>
    Sent: Saturday, August 25, 2001 3:08 AM
    Subject: RE: [PHP] Re: send mail to mailing list using mail() or smtp?
    

    > I'm sending a huge amount of mails with php. How can I send mail directly to > the smtp server? Right now I'm using pipe to send each mail to sendmail. > Works fine with about 35 000 mails, but it takes ages to run. > > What would be the smartest way? > > > Thanks! > > > -----Original Message----- > From: Richard Lynch [mailto:ceol-i-e.com] > Sent: 25. elokuuta 2001 3:54 > To: php-generallists.php.net > Subject: [PHP] Re: send mail to mailing list using mail() or smtp? > > > > My question - is this going to work for a few thousand emails? > > Depends on your server. > > > What > > about 100,000? > > No way. > > > Would it be better to send the mail directly to the > > smtp server? > > Yes. > > > Can you foresee any problems? > > Several. The first one is you didn't read the archives or look for > pre-existing code to talk to SMTP directly. :-) > > Manuel's upperdesign.com has one, and there are plenty of others. You could > roll your own -- I did, so it can't be too tricky. :-) > > Also, at that volume, I think you're going to run into trouble just in > talking to the all the SMTP servers. I *BELIEVE* one major speed-up can be > achieved by sorting the outgoing emails by their recipient's domains... > > You may want to research how "real" mailing list software deals with this if > you actually expect to hit 100K addresses. > > If they're all the same email, you'd be *WAY* better off just interfacing to > majordomo, ezmlm, SmartList, or whatever other mailing list software was > designed to handle this. > > -- > WARNING richardzend.com address is an endangered species -- Use > ceol-i-e.com > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribelists.php.net > For additional commands, e-mail: php-general-helplists.php.net > To contact the list administrators, e-mail: php-list-adminlists.php.net

    attached mail follows:


    You must have changed something else as well...

    You still should add some error-checking.

    If $ins_u is FALSE, then the INSERT failed, and you ought to do something about it...

    --
    WARNING richardzend.com address is an endangered species -- Use
    ceol-i-e.com
    Wanna help me out?  Like Music?  Buy a CD: http://l-i-e.com/artists.htm
    Volunteer a little time: http://chatmusic.com/volunteer.htm
    ----- Original Message -----
    From: BRACK <braknettaxi.com>
    To: Richard Lynch <ceol-i-e.com>
    Cc: <php-generallists.php.net>
    Sent: Saturday, August 25, 2001 3:22 AM
    Subject: Re: HELP!!!
    

    > I'm not sure if it's right solution but I did this - > > $ins_u = mysql_query("INSERT INTO users (name,email) > VALUES ('$u_name','$u_email')"); > $userid = mysql_insert_id(); > > instead for this - > > $ins_u = mysql_query("INSERT INTO users (name,email) > VALUES ('$u_name','$u_email')"); > $userid = mysql_insert_id($ins_u); > > And it works perfectly > > Youri > On 24 Aug 2001, at 20:51, Richard Lynch wrote: > > > Your mysql_connect is wrong. > > > > Stop using just to suppress errors, and start doing something useful with > > http://php.net/mysql_error like sending it to http://php.net/error_log or > > something. > > > > -- > > WARNING richardzend.com address is an endangered species -- Use > > ceol-i-e.com > > Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm > > Volunteer a little time: http://chatmusic.com/volunteer.htm > > ----- Original Message ----- > > From: Brack <braknettaxi.com> > > Newsgroups: php.general > > To: <php-generallists.php.net> > > Sent: Friday, August 24, 2001 3:25 PM > > Subject: HELP!!! > > > > > > > I have a script with combination: > > > $ins_u = mysql_query("INSERT INTO users (name,email) > > > VALUES ('$u_name','$u_email')"); > > > > $userid = mysql_insert_id($ins_u); > > > > > > > It's working fine on local server but now I put it on the web and it > > > sais: > > > Warning: Supplied argument is not a valid MySQL-Link resource in > > > /home/sites/site21/web/incr/submition.inc on line 30 > > > > (which is line above) > > > Youri > > > > > >

    attached mail follows:


    for a SHELL SCRIPT using php binary:

    in bash I would do this:

    #!/bin/bash echo -n "username: " read username echo -n "password: " read password echo $username echo $password

    Run on the command-line, it would stop and ask me for the username and password, then continue the bash shell script.

    But in PHP, how would I prompt someone at the command-line for input?

    attached mail follows:


    http://www.phpbuilder.com/columns/darrell20000319.php3 gives a good explanation.

    #!/usr/local/bin/php -q <?php

    function read() { $fp=fopen("/dev/stdin", "r"); $input=fgets($fp, 255); fclose($fp); return trim($input); }

    print("What is your first name? "); $first_name = read();

    print("What is your last name? "); $last_name = read();

    print("\nHello, $first_name $last_name! Nice to meet you!\n");

    ?>

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: Derek Sivers <phpcdbaby.com> To: <php-generallists.php.net> Sent: Sunday, August 26, 2001 7:49 PM Subject: [PHP] can you prompt for variables in command-line CGI?

    | for a SHELL SCRIPT using php binary: | | in bash I would do this: | | #!/bin/bash | echo -n "username: " | read username | echo -n "password: " | read password | echo $username | echo $password | | Run on the command-line, it would stop and ask me for the username and | password, then continue the bash shell script. | | But in PHP, how would I prompt someone at the command-line for input? | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    I have these _vti_pvt _vti_cnf directories on my website. Why? I never put them there... can I delete them?

    I tried searching for this but it's impossible to search for since it seems a lot of website have these directories and it just comes up with them :-)

    - seb

    attached mail follows:


    "Seb Frost" <sebraceshoot.com> wrote in message news:BAELJLBLJPDMDLJLPGGMCELBCGAA.sebraceshoot.com... > I have these _vti_pvt _vti_cnf directories on my website. Why? I never put > them there... can I delete them? > > I tried searching for this but it's impossible to search for since it seems > a lot of website have these directories and it just comes up with them :-)

    Those directories are for Frontpage extensions. If you don't use Frontpage, it should be safe to take an axe to them.

    attached mail follows:


    Same with _private and _derive?

    I admit it, I use frontpage when I can't remember how to code html in textpad :-)

    - seb

    -----Original Message----- From: Hugh Bothwell [mailto:hugh_bothwellhotmail.com] Sent: 27 August 2001 01:07 To: php-generallists.php.net Subject: [PHP] Re: What is it with _vti?

    "Seb Frost" <sebraceshoot.com> wrote in message news:BAELJLBLJPDMDLJLPGGMCELBCGAA.sebraceshoot.com... > I have these _vti_pvt _vti_cnf directories on my website. Why? I never put > them there... can I delete them? > > I tried searching for this but it's impossible to search for since it seems > a lot of website have these directories and it just comes up with them :-)

    Those directories are for Frontpage extensions. If you don't use Frontpage, it should be safe to take an axe to them.

    --
    PHP General Mailing List (http://www.php.net/)
    To unsubscribe, e-mail: php-general-unsubscribelists.php.net
    For additional commands, e-mail: php-general-helplists.php.net
    To contact the list administrators, e-mail: php-list-adminlists.php.net
    

    attached mail follows:


    "Seb Frost" <sebraceshoot.com> wrote in message news:BAELJLBLJPDMDLJLPGGMMELCCGAA.sebraceshoot.com... > >> From: Hugh Bothwell [mailto:hugh_bothwellhotmail.com] >> >> "Seb Frost" <sebraceshoot.com> wrote in message >> news:BAELJLBLJPDMDLJLPGGMCELBCGAA.sebraceshoot.com... >>> I have these _vti_pvt _vti_cnf directories on my website. >>> Why? I never put them there... can I delete them? >>> I tried searching for this but it's impossible to search for >>> since it seems a lot of website have these directories and >>> it just comes up with them :-) >> >> Those directories are for Frontpage extensions. If you don't use Frontpage, >> it should be safe to take an axe to them. > > Same with _private and _derive? > > I admit it, I use frontpage when I can't remember how to code html in > textpad :-)

    Tsk, tsk! ;-)

    No, FrontPage only created the _vti directories (Micro$oft bought the prog from "Vermeer Technology Inc").

    I'd leave the others alone unless you take a good close look at their contents and make sure you can survive without them.

    attached mail follows:


    |> From: Seb Frost [mailto:sebraceshoot.com] |> Sent: Sunday, August 26, 2001 5:10 PM |> |> Same with _private and _derive? |> |> I admit it, I use frontpage when I can't remember how to code html in |> textpad :-)

    You're such a masochist, why don't you just use vi.

    attached mail follows:


    Hi Guys,

    I want to write a script that retrieves quote prices off the ASX (Australian Stock Exchange) and then adds it to the database.

    I think the only way I can do this is by using the yahoo finance query..... I need to know how I can call a string within my PHP script and then get the results. The results are returned in a comma delimited format. Any ideas?

    use http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.csv to see the results.

    thanks

    Scott.

    attached mail follows:


    The easy & ugly one line solution:

    $csvalues = explode(",", implode("", file("http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=. csv")))

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: Scott Mebberson <scottredbluedesign.com> To: <php-generallists.php.net> Sent: Sunday, August 26, 2001 9:04 PM Subject: [PHP] getting values inside PHP from outside script

    | Hi Guys, | | I want to write a script that retrieves quote prices off the ASX (Australian | Stock Exchange) and then adds it to the database. | | I think the only way I can do this is by using the yahoo finance query..... | I need to know how I can call a string within my PHP script and then get the | results. The results are returned in a comma delimited format. Any ideas? | | use | http://au.finance.yahoo.com/d/quotes.csv?s=NAB&m=a&f=sl1d1t1c1ohgv&e=.csv to | see the results. | | thanks | | Scott. | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    Everything is pretty much set to default vaules. I can leave the browser open and come back 12+ hours later and the session is still active. Why??

    session.cache_expire 180

    PHP Version 4.0.3pl1

    './configure' '--without-gd' '--with-apxs' '--with-mysql=/usr' '--with-pgsql' '--with-imap'

    Thanks for any help, Jeff

    __________________________________________________ Do You Yahoo!? Make international calls for as low as $.04/minute with Yahoo! Messenger http://phonecard.yahoo.com/

    attached mail follows:


    www.communitech.net

    attached mail follows:


    Its uncommon for people to have used more than one dedicated server provider, simply because they're a bit on the expensive side and likewise comparitive reviews are hard to come by. However, I have used Communitech years back and have had only bad experiences with them.

    http://www.webhostingtalk.com/search.php?action=showresults&searchid=95278 <- good site to search around on

    /* Chris Lambert, CTO - chriswhitecrown.net WhiteCrown Networks - More Than White Hats Web Application Security - www.whitecrown.net */

    ----- Original Message ----- From: Raphael Pirker <raphaelpnr1webresource.com> To: <php-generallists.php.net> Sent: Sunday, August 26, 2001 9:28 PM Subject: [PHP] Re: Dedicated Hosting

    | www.communitech.net | | | | -- | PHP General Mailing List (http://www.php.net/) | To unsubscribe, e-mail: php-general-unsubscribelists.php.net | For additional commands, e-mail: php-general-helplists.php.net | To contact the list administrators, e-mail: php-list-adminlists.php.net | | |

    attached mail follows:


    Hi, Im writing this for second time.. has somebody experience this and please help me.. pleaseee

    When i use this function mail(), mail was sent successfully but when recipient receive the mail the date timezone is incorrect. It displayed -0800 instead of +0800. Im from +0800. The timezone does not display correctly. I have tried different servers but still the same. And all clients get the wrong date. Im Using php 4.06 and win2k and winnt4.

    Can anybody help me.

    Thanks

    Jeffrey Iskandar Ahmad System Engineer Technology Division TIME dotNet

    attached mail follows:


    I like your idea about using dl(). Could someone please point me where I could read on how to write dynamic loading PHP extensions. Thank you very much.

    P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/ Please let me know of any other good resources. Thanks.

    -----Original Message----- From: Rasmus Lerdorf [mailto:rasmusphp.net] Sent: Sunday, August 26, 2001 9:07 AM To: Anas Mughal Cc: php-generallists.php.net Subject: RE: [PHP] Error while passing parameters as path

    > Actually, I need to run as CGI because I have customized extensiont to PHP > that my hosting company will not imbed in their PHP-Apache module. I am > totally fine with that.

    Why don't you just dl() your extension into the module version?

    attached mail follows:


    If you use the ext/ext_skel mechanism for creating your extension framework your extension will be able to build shared automatically.

    Just do ./configure --with-blah=shared and look in modules/

    -Rasmus

    On Mon, 27 Aug 2001, Anas Mughal wrote:

    > I like your idea about using dl(). > Could someone please point me where I could read on how to write dynamic > loading PHP extensions. > Thank you very much. > > > P.S. I found one at http://www.webtechniques.com/archives/2001/01/junk/ > Please let me know of any other good resources. Thanks. > > > > > -----Original Message----- > From: Rasmus Lerdorf [mailto:rasmusphp.net] > Sent: Sunday, August 26, 2001 9:07 AM > To: Anas Mughal > Cc: php-generallists.php.net > Subject: RE: [PHP] Error while passing parameters as path > > > > Actually, I need to run as CGI because I have customized extensiont to PHP > > that my hosting company will not imbed in their PHP-Apache module. I am > > totally fine with that. > > Why don't you just dl() your extension into the module version? >

    attached mail follows:


    On Sun, 26 Aug 2001 22:05, ReDucTor wrote: > they don't give shell access without contacting them, and they don't > reply to emails > ----- Original Message ----- > From: "ReDucTor" <sjdtmvtpg.com.au> > To: <huntsmanwww.nisu.flinders.edu.au>; <php-generallists.php.net> > Sent: Thursday, August 23, 2001 12:48 PM > Subject: Re: [PHP] path to php > > > >Have you tried which php or locate php? > > > > what do you mean? > > > > no shell acces, that requires contacting them to get, which they > > don't > > read > > > the emails :D > > > > - James "ReDucTor" Mitchell > > ----- Original Message ----- > > From: "David Robley" <huntsmanwww.nisu.flinders.edu.au> > > To: "ReDucTor" <sjdtmvtpg.com.au>; <php-generallists.php.net> > > Sent: Thursday, August 23, 2001 12:20 PM > > Subject: Re: [PHP] path to php > > > > > On Thu, 23 Aug 2001 11:05, ReDucTor wrote: > > > > does anyone know all the possible paths to php...because i can't > > > > seem to find it on my current host...i have tried using the > > > > following > > > > > > > > php /path/to/script.php > > > > /usr/php /path/to/script.php > > > > /usr/local/bin/php /path/to/script.php > > > > /usr/bin/php /path/to/script.php > > > > > > > > but i still can't seem to get it to work with out it saying that > > > > it can't find the path to php...any one got any ideas?!? > > > > > > > > btw. i know php is on it.. > > > > > > > > I have tried contacting them, but they don't seem to want to > > > > reply... > > > > > > Have you tried which php or locate php? If you don't have shell > > > access you'll have to fiddle around with backticks or whichever of > > > system() and friends is appropriate. > > >

    Yeah, well like I said, if you don't have shell access, use system() or backticks or something from a php script.

    -- 
    David Robley      Techno-JoaT, Web Maintainer, Mail List Admin, etc
    CENTRE FOR INJURY STUDIES      Flinders University, SOUTH AUSTRALIA  
    

    DOS Tip #63: add BUGS=OFF to CONFIG.SYS

    attached mail follows:


    I love cookies. I hate it when they dont work. I was previously accessing cookies by just using their name (I had global_vars turned on), I recently decided to turn it off(for security reasons) and I can no longer even set cookies? Yes,cookies are enabled and everything..in fact,I never even touched any of the cookie functions.. thats what I dont get... anyone have any ideas on what could be wrong? (And yes, im using $HTTP_Cookie_VARS["cookiename"]; to access (try and access, that is) them now.. Anyone know what might be wrong? Any helps appreciated, thanks. -Andy