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

Re: command line php



Erik van der Meulen, Mon, Mar 18, 2002 at 08:47:30PM +0100: 
> Hi Listpeople - I would like to execute a php script from crontab.
> Some Suse users told me they have a /usr/bin/php which allows for
> just that.
> I have tried to find a package in Debian which brings this, but
> have not been able to locate it.
> 

apt-get install php4-cgi

use '#!/usr/bin/php4 -q' as a shebang

you'll still need <?php ?> tags

might want to turn set html_errors = Off in /etc/php4/cgi/php.ini


g


-- 
Brought to you by Debian 3.0
Linux took 2.4.16 #1 SMP Sat Jan 5 12:52:24 EST 2002 i686 unknown

Attachment: pgpm4WaZOYFgM.pgp
Description: PGP signature


Reply to: