I have two different tasks each task is in php file, so I have two php files.
Can I run 2 files at the same time?
I have two different tasks each task is in php file, so I have
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Don’t know exactly what you want, but, I think this cam help you:
run_files.php:
Where
run1.phpandrun2.phpis the files you want to execute.UPDATE
You have said
the second task will have to wait, and then the user will not get the service he needs, so, this does not work as you expect.PHP files are read from up to down, like the tasks (Cronjobs), which run one file than other, so, you can’t prevent the time between files execution.