Re: PHP as Scripting Language

From: Date: Wed, 07 Feb 2001 17:26:27 +0000
Subject: Re: PHP as Scripting Language
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38573@lists.php.net to get a copy of this message
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 other, topic.... - Shane ----- Original Message ----- From: "John Huggins" <huggins@tls2000.com> To: <php-general@lists.php.net> Sent: Wednesday, February 07, 2001 12:10 PM Subject: [PHP] PHP as Scripting Language > > 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 # ./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. > > Thanks for your help. > > > > ******************************************* > John Huggins > > Transmitter Location Systems, LLC > 14120 Parke Long Court, 103 > Chantilly, Virginia 20151 > 703-227-8435 > 703-968-8808 fax > huggins@tlsusa.com > http://www.tls2000.com/ > > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#38573) next »