View Full Version : Cron for php file?
subog
08-01-2001, 05:53 AM
I know we can do cron job for cgi written in perl.
I wonder we could do the same in .php? Is the command still the same?
altasexa
08-01-2001, 08:59 AM
Yes, PHP scripts can be run from the command line which means they can also be made into a cron job.
Sticks
08-01-2001, 09:38 AM
many (Most?) hosts won't allow php scripts to run as cgi from a cron job - i have had to rewrite these cronjobs in perl for these hosts.
I could not do php cronjobs on my 3 servers.
fabian
08-01-2001, 12:59 PM
i guess this also depends if you use the cgi version (with which i was able to start php with cron) or the apache module. i don't know if you can call when installed as a module. does anybody know that?
Just run this command:
wget -q "http://www.theodomainforthephp.com/includingfullurk.php?and=anythingextra"
run that whenever you wish to run the PHP script http://bbs.adultwebmasterinfo.com/ubb/smile.gif
subog
08-01-2001, 01:53 PM
Thank alot guys!
So
wget -q "http://www.theodomainforthephp.com/includingfullurk.php?and=anythingextra"
will work both cgi version and module on apache? What if the webserver is not running apache (exclude IIS)?
Jimbo
08-01-2001, 11:24 PM
Just install the PHP command to run php scripts from command line!
find infos on www.php.net (http://www.php.net) I guess
vBulletin® v3.7.3, Copyright ©2000-2012, Jelsoft Enterprises Ltd.