php cgi vs. cli

    Date: 03/25/05 (PHP Community)    Keywords: php, software

    I'm using Marc Liyanage's PHP 5.0.3 package for OS X:

    http://www.entropy.ch/software/macosx/php/

    The FAQ says that the CGI binary is included, and that it is installed in /usr/local/php5/bin. However, it appears to be the CLI version, not CGI:

    $ /usr/local/php5/bin/php -v
    PHP 5.0.3 (cli) (built: Mar 6 2005 22:13:21)
    Copyright (c) 1997-2004 The PHP Group
    Zend Engine v2.0.3, Copyright (c) 1998-2004 Zend Technologies


    Is there something I'm missing? Can this function as the CGI version? What I'm most interested in is having the $_GET and $_POST superglobals working. As it is, they're initialized as arrays, but aren't populated with any of the actual POST or GET data. (Same for $HTTP_GET_VARS and $HTTP_POST_VARS.)

    Thanks.

    Source: http://www.livejournal.com/community/php/276949.html

« PHP / javascript problem || Script help »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home