Click here to Skip to main content
15,896,522 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have two php files. I want to run that two files consecutively in 20 minutes gap one after another.can some one suggest me how can achieve that.
Posted
Comments
Sergey Alexandrovich Kryukov 18-Feb-15 11:54am    
I wonder why... And what have you tried so far?
—SA
IBRAHIMFARIS 18-Feb-15 12:08pm    
i have two files for cron jobs.The followings files are there:
1.database backup php script
2.files backup php script
This two files are in another php file(named cron.php).
How can I make a function that runs in 20 mins . I need to run a function in a time interval that two php files are execute one after another into cron.php file

1 solution

 
Share this answer
 
Comments
IBRAHIMFARIS 18-Feb-15 12:19pm    
Thanks for your reply.but i dont want above link concept. I need below requirements in php script to run.
i have two files for cron jobs.The followings files are there:
1.database backup php script
2.files backup php script
This two files are in another php file(named cron.php).
How can I make a function that runs in 20 mins . I need to run a function in a time interval that two php files are execute one after another into cron.php file
Richard MacCutchan 18-Feb-15 12:34pm    
That is a different question. I would guess you need to use some sort of sleep function, but I am not a PHP programmer.

After reading this a couple more times it sounds as though you just want to run the two jobs in a 20 minute time slot. I don't know of any way you could guarantee that.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900