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

From: Date: Fri, 29 Oct 2004 20:06:04 +0000
Subject: Re: PHP in CGI ....php.in
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-200683@lists.php.net to get a copy of this message
On Fri, 29 Oct 2004 21:45:24 +0200, Christian Ista <ml@cista.be> 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/

« previous php.general (#200683) next »