+ 1

Run a php code after 10s

hi guys how can i run a php code after 10 seconds when my main page (index.php) completely loaded

7th Jan 2020, 7:15 PM
shayan
shayan - avatar
4 Respuestas
0
Maybe you can use JS setTimeout for the wait in index.php, afterwards you redirect to the desired PHP page. IIRC there's a meta for redirect, but I can't remember which meta that it was.
7th Jan 2020, 7:31 PM
Ipang
0
no i don't want to redirect to a php page i just want to update my database after 10s i used Timeout. it didn't work for me i don't know why :(
7th Jan 2020, 7:43 PM
shayan
shayan - avatar
0
tnx mirielle but i want to update my database only for one time (only execute once) is there any way except "SetTimeout" and "setInterval" to do this?
7th Jan 2020, 9:17 PM
shayan
shayan - avatar