PHP Help
#3

I tried this...

Код:
<?php
$url = "http://forum.rokzlive.com";
if(!file_get_contents($url))
{
    Forum: <b><strong><span style="color: #008000;">Offline</span></strong></b>
    <br /><br />
}
else
{
    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 />
}
?>
And it errors.
Heres my error.


Parse error: syntax error, unexpected ':' in C:\Documents and Settings\David\Application Data\NuSphere\PhpED\projects\noname2.php on line 5


But theres many other errors when i remove that :, whats wrong>
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)