fsockopen()

Status
Not open for further replies.

eminemix

Member
Messages
350
Reaction score
0
Points
16
I see that fsockopen() was working OK on my accout 'till yesterday, but now it can't reach any ip or maybe the port was blocked ( 27015 ).

P.S. I am trying to develop a php script that makes a query to a Half-Life server returning the players list and the map.
 
Last edited:

Russ

<b>Retired *****</b>
Messages
3,168
Reaction score
2
Points
38
I dont believe we allow outside connections from php scripts. Someone else want to clarify on this one?
 

Bryon

I Fix Things
Messages
8,149
Reaction score
101
Points
48
The last two parameters for fsockopen are for an error string and an error number, respectively. Can you pass two variables to the method and output them to see if an error occurred?

The function also returns boolean false if an error occured. Could you check that as well?

If it was working correctly, there is no reason why it should just stop working.
 

eminemix

Member
Messages
350
Reaction score
0
Points
16
Thanks for the tip Bryon. I've made a mistake indeed and messed my code.
And i also noticed that CS servers ban me after making more than 10 requests per hour. And i only used 1 server :)

X10 allows external connections. Other payed hostings don't. Thanks X10.
 
Status
Not open for further replies.
Top