Jump to content

My PHP is being displayed on the page..


TJMAudio

Recommended Posts

This is not the first time this has happened.  My actual code is being displayed on a white page...
www.shleem.com/stuff/

Here is the code:
[code]<?
$url = @fsockopen("big.oscar.aol.com", 80, &$errno, &$errstr, 3);
fputs($url, "GET /spoonosupport?on_url=online&off_url=offline HTTP/1.0\n\n");
while(!feof($url))
{
$feofi++;
$page .= fread($url,256);
if($feofi > 10)
{
$page = "offline";
break;
}
}
fclose($url);
if(strstr($page, "online"))
{
echo "the user is online";
}
else
{
echo "the user is offline";
}
?>[/code]
Link to comment
https://forums.phpfreaks.com/topic/30686-my-php-is-being-displayed-on-the-page/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.