"fsockopen()" i need this function

Status
Not open for further replies.

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
This function is HIGHLY NEEDED in my website... because.. its a online server check... so, i need to use fsockopen.. to check if the server is online... please.. Corey... I need this option enabled on my site... I promise i wont use it with bad intentions...

Thanks...

P/D: I posted in the spanish section... but nobody answer me... so i post it here...
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Is it for an internal or external server?
 

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
it is for external servers... like.. cs servers... mu online servers... wow servers...etc

Please thanks for reading
 

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
why are you checking if external servers are up? skipping to the answer...i can see it being yes or no, but i'm not the admin, so we'll wait for corey
 

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
Chriz... Im doing it... because it is an "Online Games" database... where player can find servers... where they can play... so i check it... so they choose a server that they can play automatically...

Do You understandme?... See www.hopzone.net... this is a similar site
 

Reclutador

Active Member
Messages
3,866
Reaction score
0
Points
36
You've opened other thread in spanish forum. Decide which you want mantain.

But this is a webhosting, not a dedicated server
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Why can you not use fsockopen()? Is it disabled? I don't believe it is, I may be wrong though..

I don't see why it would be, so if it is I'll take a look at it for you.
 
Last edited:

Chris Z

Active Member
Messages
5,603
Reaction score
0
Points
36
ok, i see why you need to use that, but i don't know what else to say about it, cuz i have no way of knowing if it's on or off
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
Hmm dunno if you could but do you want to try another way of checking the ports?

Edit: I think its different.
 
Last edited:

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
Bryon:

thanks... I REALLY NEED this function...

----------------------------------------------

Reclutador:

Sorry... but i really needed this... i wont duplicate a post ever again... i'm really sorry

------------------------------------

Brandon:

What Do You Suggest?

---------------------------------------

Thanks...

pocho_m
 

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
uses fsocketopen , i never looked at it, oh well [said it might work]
 
Last edited:

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
i think... its the same function.. in an older PHP engine... coz... i googled it.. and nothing appears
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
Argg! Why can't you use fsockopen!? I can help you out with it, I just need to know what is preventing you from using it.
 

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
Bryon:
It says this:

Warning: fsockopen() has been disabled for security reasons in /home/monchod1/public_html/muser_beta/miphp.php on line 4

I think this is coz its disabled

EDIT:

This IS the code of the function

fsockopen("190.30.81.254","80",$ERROR_NO,$ERROR_STR,(float)0.5)

It works on my local xampp server... so the code is well
 
Last edited:

Brandon

Former Senior Account Rep
Community Support
Messages
19,181
Reaction score
28
Points
48
PHP:
        function checkPort($serverip, $port){
            
            $ChechThePort = @fsockopen($serverip, $port, $errno, $errstr, 1);
                if (!$ChechThePort) {
                      $string = 'false';
                   }else{
                      $string = 'true';
                      @fclose($handle);
                   }
               return $string;
        
        }

Thats what I use.
 
Last edited:

pocho_m

New Member
Messages
24
Reaction score
0
Points
0
the same thing... but in my site... its blocked.. it says for security reasons
 
Status
Not open for further replies.
Top