Re: PHP as Scripting Language

From: Date: Thu, 08 Feb 2001 08:00:29 +0000
Subject: Re: PHP as Scripting Language
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-38687@lists.php.net to get a copy of this message
try #/usr/local/bin/php -q <? ... ?> Hidayet Dogan hidayet.dogan@pleksus.com.tr Pleksus Bilisim Teknolojileri A.S. ---------------------------------------------------------- caldiran sok. 14/6 06420 kolej ankara * www.pleksus.com.tr tel : +90 312 4355343 * faks: +90 312 4354006 On Wed, 7 Feb 2001, Michael Dearman wrote: > > > 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 # ./test.php > > Content-type: text/html > > > > Steve Werby had this solution for a previous post on the same > problem. > MD > -------------------------------- > From: "Steve Werby" <steve@247computing.com> > To: "Tim Livers" <timl@purdue.edu>, <php-general@lists.php.net> > > "Tim Livers" <timl@purdue.edu> wrote: > > Everything works fine except that I get "X-Powered-By: PHP/4.0.4pl1 > > Content-type: text/html #!/usr/local/bin/php" at the top of the page. > > 1. In php.ini, set "expose_php = Off" > 2. Restart Apache. > > > > > > > > > > > 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 > > -- > 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 (#38687) next »