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 tel : +

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 John Huggins
Nailed it!!! Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Sent: Wednesday, February 07, 2001 12:39 PM To: [EMAIL PROTECTED] Cc: [EMAIL PROTECTED] Subject: Re: [PHP] PHP as Scripting Language Usage: php [-q] [-h] [-s] [-v] [-i] [-f

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 w

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 othe