Jump to content

Force a delay in code output showing up...


galvin

Recommended Posts

Is there a way with PHP to have an image show for a specified time (say 5 seconds) and THEN have code show up in place of the image?

 

Basically, it would be like one of those "loading" images and then info shows up once it's done "loading".  But my code would normally come up instantaneously (i.e. there really is no loading time occuring), I just want to force a 5-second delay.

 

Can that be done?  I know about sleep(), but I don't think that can be done just for one particular section of a page, can it?

 

 

Link to comment
https://forums.phpfreaks.com/topic/141497-force-a-delay-in-code-output-showing-up/
Share on other sites

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.