Jump to content

Is there a function in php similar to javascript's setTimeout function ?


jd2007

Recommended Posts

No. PHP is interpreted server side and then the output is send to the users browser which makes it impossible for PHP to "do something" after 5 seconds.

 

Not necessarily true, and not true.

 

PHP can be ran command line, in which case the output is probably going to be sent to some logs and waiting 5 seconds is a common thing to do.

 

Either way you can wait 5 seconds to do something, just as a web script it will be slow loading :)

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.