Re: PHP as Scripting Language
| From: | Michael Dearman | Date: | Wed, 07 Feb 2001 20:36:35 +0000 |
| Subject: | Re: PHP as Scripting Language | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-38601@lists.php.net to get a copy of this message | ||
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