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 : +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" <[EMAIL PROTECTED]>
> To: "Tim Livers" <[EMAIL PROTECTED]>, <[EMAIL PROTECTED]>
> 
> "Tim Livers" <[EMAIL PROTECTED]> 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
> > [EMAIL PROTECTED]
> > http://www.tls2000.com/
> > 
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
> 


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to