Page 1 of 1

about cron , is it possible to run it in php ?

Posted: Mon Oct 31, 2011 3:06 pm
by ScOrPi
Hi All,
how are you ?
I've question about CRON ! .. is there any possible to make cron from php itself ? without change anything in Linux ?

Re: about cron , is it possible to run it in php ?

Posted: Mon Oct 31, 2011 4:28 pm
by social_experiment

Re: about cron , is it possible to run it in php ?

Posted: Mon Oct 31, 2011 7:04 pm
by Eric!
Just an FYI -- you can't setup a cron job without changing anything in linux. The above tool needs permission with exec or shell_exec to work and it runs crontab in the shell to schedule the job. If your question is about making a script that can schedule itself to run, no it can't be done. You have to use crontab (or a tool that runs crontab) to schedule the server to run your script.

Re: about cron , is it possible to run it in php ?

Posted: Mon Oct 31, 2011 11:37 pm
by social_experiment
Eric! wrote:Just an FYI -- you can't setup a cron job without changing anything in linux.
Yeah that's what i thought but i wasn't completely sure about it

Re: about cron , is it possible to run it in php ?

Posted: Wed Nov 02, 2011 3:01 pm
by ScOrPi
Thanks guys ..

I'm now little disappoint ... thank you Eric! about your information ..

i really wish that php would support timers... :(