Re: PHP in CGI ....php.in

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Fri, 29 Oct 2004 21:45:24 +0200, Christian Ista <ml@xxxxxxxx> wrote:
> > php -c /path/to/php.ini
> 
> Could you explain ??

This is how you specify which php.ini file to use with a cgi binary
php.  Is that not what you asked?

When you use php as a cgi binary (not as mod_php) you can run php a
couple of ways:

1) command line:

php -c /path/to/php.ini -r "echo 'Hello World';"

2) command line scripts:

#!/usr/bin/php -c /path/to/php.ini
<?php
    echo 'Hello world';
?>


-- 
Greg Donald
Zend Certified Engineer
http://gdconsultants.com/
http://destiney.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux