gergy008 Posted December 5, 2010 Share Posted December 5, 2010 Okay, I'm using fsockopen to see if a port is being used, But all it does it crashes the page if it isn't. If it is one it works but if it is off the pages just doesn't load at all. Code: <?php $fp=fsockopen("localhost", 43594, $errno, $errstr, 30); if($fp){ echo('The server is <font color="#0066FF"><b>Online!</b></font>'); } else { echo('The server is <font color="#FF0000"><b>Offline!</b></font>'); } ?> Can one of you amazing helpful souls help me out? Thanks in advance! Quote Link to comment Share on other sites More sharing options...
btherl Posted December 6, 2010 Share Posted December 6, 2010 Hmm.. I would try adding this to the top: ini_set('display_errors', 1); Maybe it will tell you something useful. 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.