PHP, upgrade, or not?

Status
Not open for further replies.

jasper

New Member
Messages
18
Reaction score
0
Points
0
hello I used to have 3 php scripts running to check ports,, nothing has changed on the server i was checking,, only thing i can think is the php change that has taken effect,, below is a copy of the script

$link = $_GET['link'].":";
$s_link = str_replace("::", ":", $link);
list($addr,$port)= explode (':',"$s_link");
if (empty($port)){
$port = 7000;
}
//Test the server connection
$churl = @fsockopen(server($addr), $port, $errno, $errstr, 20);
if (!$churl){
//echo $errstr;
header("Location: $dead");
}
else {
header("Location: $live");
}
function server($addr){
if(strstr($addr,"/")){$addr = substr($addr, 0, strpos($addr, "/"));}
return $addr;
}
?>


then a link

<img src="http://hellserver23.exofire.net/Hell23/Status/7000.php?link=**.**.**.133"img>

as i said previously, this worked until 11 oct 07, (and still works on port80??) if this is the type of misuse you mention, then i apologise and will remove all traces of it, currently it says basic php config is "upgrade pending" on my account, would the upgrade fix this or is it not related to the php upgrade?


thank you for your time
 
Last edited:

eminemix

Member
Messages
350
Reaction score
0
Points
16
If it worked before it should work with intermediate php configuration.
 
Status
Not open for further replies.
Top