|
Posted by deko on 09/20/06 01:38
> One of the advantages of PHP5 appears to be that you get a more sensible "cli"
> version of PHP installed, rather than the "cgi" version that you get in PHP4.
> The CGI version of PHP can be persuaded to be similar to the CLI version by
> using the "-q" flag, which supresses headers.
>
> "./test.php" should still have output the same thing.
>
> 4.2.2 is very, very old, though, so there are many, many unfixed bugs in it.
Thanks for the reply - I got it working.
As long as the shebang correct (#!/usr/bin/php) and the script has 755 perms, it
should output to STDOUT, which is the tty connection (assuming there is no
console session). And yes, the -q flag is necessary or I get a bunch of HTML
cluttering the output.
4.2.2 is the version that came with Red Hat 9 (Linux 2.4), which was the last
Red Hat distro, and this is what runs on my test server. Now that RH is mainly
about commercial (or "Enterprise") versions, I'm not sure what distro to use so
I've stuck with RH9 and all the default packages - including PHP 4.2.2, MySql
3.23, Apache 2.0.
I tried installing a newer version of an individual package once and had nothing
but trouble. I figure there's a reason why RH9 shipped those particular
packages...
Navigation:
[Reply to this message]
|