Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Shane McBride
This is just a guess, but remove the path (#!/usr/local/bin/php) If you have the php.ini and (I'm assuming Apache) the httpd.conf file configured you shouldn't need it. I never have used it. It looks like the Perl way to script... :) DISCLAIMER: I am by no means well-versed in this, or any

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Frank Joerdens
On Wed, Feb 07, 2001 at 12:10:46PM -0500, John Huggins wrote: [ . . . ] host:~/projects/PHPScripts # ./test.php Content-type: text/html Hello World Great. Now how do I get rid of the Content-type line? I have searched the docs with little clues. #!/usr/local/bin/php -q Is what you

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Michael Dearman
John Huggins wrote: Well, I have compiled a php binary for use as yet another scripting language to work along side AWK, Perl, Sh, etc. It works too. I have this file... #!/usr/local/bin/php ? print("Hello World\n"); ? I run it and get.. host:~/projects/PHPScripts #

Re: [PHP] PHP as Scripting Language

2001-02-07 Thread Hidayet Dogan
try #/usr/local/bin/php -q ? ... ? Hidayet Dogan [EMAIL PROTECTED] Pleksus Bilisim Teknolojileri A.S. -- caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr