PHP Help
#7

PHP код:
<?php
$fgtHandle 
= @file_get_contents("http://forum.rokzlive.com");
if(!
$fgtHandle)
{
    echo 
'Forum: <b><strong><span style="color: #008000;">Offline</span></strong></b>
    <br /><br />'
;
}
else
{
    echo 
'Forum: <b><strong><span style="color: #008000;">Online</span></strong></b>
    <br /><br />
    <a href="http://forum.rokzlive.com">Click Here to go to the forum!</a>
    <br /><br />'
;
}
?>
The '@' sign before a function prevents HTML error outputting, so it will return true or false still.
Reply


Messages In This Thread
PHP Help - by Rokzlive - 24.01.2011, 01:13
Re: PHP Help - by saiberfun - 24.01.2011, 04:21
Re: PHP Help - by Rokzlive - 24.01.2011, 04:57
Re: PHP Help - by xxmitsu - 24.01.2011, 05:04
Re: PHP Help - by Rokzlive - 24.01.2011, 05:06
Re: PHP Help - by Rokzlive - 24.01.2011, 05:11
Re: PHP Help - by Calgon - 24.01.2011, 05:40
Re: PHP Help - by saiberfun - 24.01.2011, 06:23

Forum Jump:


Users browsing this thread: 1 Guest(s)