I'm new, so why won't this work?

I’m kinda new to PHP so just wondering why this won’t display the image? It just gives me a broken image link, and the server is definetly up, and the images are definetly in the folder

[php]$open = fsockopen(72.8.157.56, 25565, $errstr, $errno,0.5);

if($open) {
//online
$mc_image = “online.png”;
} else {
//offline
$mc_image = “offline.png”;
}
?>
[/php]

Try this instead…

[php][/php]

It might be because you don’t have short tags enabled.

Sponsor our Newsletter | Privacy Policy | Terms of Service