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

Re: [cobalt-users] php 4.2.2



just download a binary from php.net dump in in /usr/bin then make a script
like

#!/usr/bin/php -q
<?

mail("your@xxxxxxxxx", "Cron Test", "stupid message", "From:test@xxxxxxxx");

?>

save that somewhere like /root/phpcron.php

and then add entry using crontab -e like

00 * * * * php /root/phpcron.php

and that will mail u with a stupid message every hour.

thats about it.

fragga

----- Original Message -----
From: "Kameel" <kameel@xxxxxxxxxxxxxxx>
To: <cobalt-users@xxxxxxxxxxxxxxx>
Sent: Thursday, October 03, 2002 5:47 AM
Subject: [cobalt-users] php 4.2.2


> Heya Guys,
>
> Ok after friggin around for hours now, I still haven't had any luck and
I'm
> getting desperate here.
> I need to run a php script via a cron job.
> The cron job runs fine, but it doesnt interpret the php at all.
>
> PHP 4.2.2. is currently installed as a module into Apache on my Raq3.
> How do I set it up so that it will interpret command lines ?
> I can't find a copy of "php" using "which php" or using "locate php",
there
> are only modules and header files.
>
> Any help would be really appreciated,
> Kam.
>
> _____________________________________
> cobalt-users mailing list
> cobalt-users@xxxxxxxxxxxxxxx
> To subscribe/unsubscribe, or to SEARCH THE ARCHIVES, go to:
> http://list.cobalt.com/mailman/listinfo/cobalt-users
>