- Messages
- 19,181
- Reaction score
- 28
- Points
- 48
Ok so im trying to create a dynamic sig ihn PHP to check the server Ports and stuff but when I run it I get nothing...its on my local pc right now.
I have the following code to check for the port to be up or down:
Do you see anything wrong with this...as if I delete this it works fine with the normal stuff.
I have the following code to check for the port to be up or down:
PHP:
ini_set('display_errors','0');
$fp = fsockopen(64.92.165.74, 80,$errno,$errstr, 4);
if (!$fp){
$data = $background,10,0,91,63,$red,"arial.ttf","Down";
} else {
$data = $background,10,0,91,63,$green,"arial.ttf","UP";
}
return $data;
fclose($fp);
imagettftext($data);
Do you see anything wrong with this...as if I delete this it works fine with the normal stuff.
Last edited: