[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Command-line PHP with Woody



On Thu, 7 Apr 2005, Robert S wrote:

> I have a file called test.php:
> $ cat test.php
> <?php
> echo "Hello";
> ?>
> 
> When I try to run it from the command line I get the following:
> 
> robert@debian:~/testing$ php4 test.php
> X-Powered-By: PHP/4.1.2
> Content-type: text/html

Ah ok.  I did notice you posted this earlier but wasn't sure if it was the 
only problem.  This is easily fixed by passing -q to php4.  I ran your 
script under Woody thusly:

~$php4 -q ./test.php             
Hello

Cheers,
	Rob

-- 
Robert Brockway B.Sc.
Senior Technical Consultant, OpenTrend Solutions Ltd.
Phone: +1-416-669-3073 Email: rbrockway@opentrend.net http://www.opentrend.net
OpenTrend Solutions: Reliable, secure solutions to real world problems.
Contributing Member of Software in the Public Interest (http://www.spi-inc.org)



Reply to: