01hanstu Posted February 5, 2010 Share Posted February 5, 2010 Hi, Can anyone help. I want to have a 'loading' icon displayed until the code (below) has finished executing, any ideas? <? $ip = "192.168.0.30"; $port = "80"; if (! $socksr01 = @fsockopen($ip, $port, $num, $error, 5)) echo '<B><FONT COLOR=red>Offline</b></FONT>'; else{ echo '<B><FONT COLOR=lime>Online</b></FONT>'; fclose($socksr01); } ?> This is on the page 9 times (as we have 9 servers), and is slooow Thanks Link to comment https://forums.phpfreaks.com/topic/191072-loading-page/ Share on other sites More sharing options...
taquitosensei Posted February 5, 2010 Share Posted February 5, 2010 you'd have to use some javascript. Jquery has a nifty loading add-on you might want to look at. I think it's just called "loading" Link to comment https://forums.phpfreaks.com/topic/191072-loading-page/#findComment-1007528 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.