Re: Command-line PHP with Woody
y:
>
> ~$php4 -q ./test.php
> Hello
>
> Cheers,
That works, but mysql functions don't seem to work (they do using the apache
module). Thus:
robert@debian:~/testing$ php4 -q test.php
<br />
<b>Fatal error</b>: Call to undefined function: mysql_connect() in
<b>/home/robert/testing/test.php</b> on line <b>34</b><br />
robert@debian:~/testing$
Fortunately I've fixed this problem by hand-compiling the latest php4
in /usr/local/php, and I've linked the binary to /usr/local/bin/php (with
the "./configure --with-cgi=no" option). Works a treat. I prefer hand
compiling things to using backports - seems to be perfectly reliable.
Reply to: