I want that certain mysql query would be executed in 1 minute after mysql_query() function executes in the php file. Is it possible to do that? Thank you.
I want that certain mysql query would be executed in 1 minute after mysql_query()
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.
You might want to use MySQL’s SLEEP().
or just
But note your script will be running for 60 seconds because by default, your php will wait for the result. If you don’t want this, you should fork a new process so the php process can finish and return data to the user.
Edit: you said you don’t want people to wait
If you don’t want people to wait, you should fork a new process, or signal a running process (daemon) to execute your query.