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 Quote Link to comment 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" Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.