Can a PHP script call a webpage like cron?
Posted: Mon Dec 05, 2005 11:20 pm
Hello,
Sorry if this is a really dumb question, but I have a PHP script on my server. And using cron, I call this script throughout the day. I also have a second cron job setup to call a second script. The second script is setup to run three minutes after the first script. So it works like this...
cron1 calls http://domain.com/script1.php... then...
cron2 calls http://domain.com/script2.php...
Is it possible to put something inside script1.php that will call script2.php once script1.php is done processing? The reason I am wondering... is so that I only have to run 1 cron job instead of two.
Is this type of thing possible? Can one php script run... and then call another script just like a cron job?
Thanks for any help.
Kindly,
John
Sorry if this is a really dumb question, but I have a PHP script on my server. And using cron, I call this script throughout the day. I also have a second cron job setup to call a second script. The second script is setup to run three minutes after the first script. So it works like this...
cron1 calls http://domain.com/script1.php... then...
cron2 calls http://domain.com/script2.php...
Is it possible to put something inside script1.php that will call script2.php once script1.php is done processing? The reason I am wondering... is so that I only have to run 1 cron job instead of two.
Is this type of thing possible? Can one php script run... and then call another script just like a cron job?
Thanks for any help.
Kindly,
John