PHP Problem?

Status
Not open for further replies.

kamcraft

New Member
Messages
61
Reaction score
0
Points
0
Hi, were their changes made in the PHP settings for cossacks because one of my pages isn't displaying and I think it is due to this:

Code:
//testing for open port
function test_port($server,$port){
 $sock = @pfsockopen("$server", $port, $ERROR_NO, $ERROR_STR, (float)1.5);
 if($sock){
     @fclose($sock);
     return true;
    } else return false;
}

I haven't changed anything in the script and it worked before, basically it just stopped working thats why I ask if anything was changed?
 

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
It would help to know the error, But i'm betting its an outside connection error.. In which case yes, you're not allowed to connect to outside sources.
 

kamcraft

New Member
Messages
61
Reaction score
0
Points
0
thats not the problem, the problem is nothing shows up its a blank page and I'm not connecting to anything all it does is check if my server is on.
Edit:
Ok i figured out the problem it was using Pfsockectopen so I changed it to Fsocketopen and it worked fine.
 
Last edited:

Chris73

New Member
Messages
5,356
Reaction score
1
Points
0
Since this issue has been resolved i will close this thread. If you have anymore issues feel free to open a new thread and a staff member will be happy to assist you.
 
Status
Not open for further replies.
Top