Re: PHP as Scripting Language

From: Date: Thu, 08 Feb 2001 18:17:34 +0000
Subject: Re: PHP as Scripting Language
Groups: php.general 
Request: Send a blank email to php-general+get-38793@lists.php.net to get a copy of this message
"#!/usr/local/bin/php -q" doesn't quite do it for me. Here's what I get before and after adding the -q. $ cat xxx.php #!/usr/local/bin/php <?php echo "hello world\n"; ?> $ xxx.php X-Powered-By: PHP/4.0RC2 Set-Cookie: PHPSESSID=d74e5e80abcf1d2898588b595dc751d5 Expires: Thu, 8 Feb 2001 17:39:17 GMT Cache-Control: public, max-age=60 Last-Modified: Thu, 8 Feb 2001 17:38:13 GMT Content-type: text/html hello world $ cat xxx.php #!/usr/local/bin/php -q <?php echo "hello world\n"; ?> $ xxx.php <br> <b>Warning</b>: Cannot send session cookie - headers already sent in <b>Unknown</b> on line <b>0</b><br> <br> <b>Warning</b>: Cannot send session cache limiter - headers already sent in <b>Unknown</b> on line <b>0</b><br> hello world Any ideas on what I've got configured wrong? Thanks. --- Bill Rausch, Software Development, Unix, Mac, Windows Numerical Applications, Inc. 509-943-0861 bill@numerical.com

« previous php.general (#38793) next »