Help - Search - Members - Calendar
Full Version: fsockopen() doesn't work
The Planet Forums > System Administration > General Support Questions
Fizzwizz
A customer has a php script using fsockopen() but fails as fsockopen() wont make a socket.

Warning: fsockopen(): unable to connect to ***.***.***.***:7 in /home/virtual/site20/fst/home/cipher/public_html/test.php on line 11
port 7 closed on ***.***.***.***

He has tried two similar scripts both using fsockopen() and neither work

Is there something that needs enabling?

ensim pro 250
RH 7.3

Thanks .. Fizz
mingluen
how about using $XYZ = @fsockopen() ....
levovich
I have this problem with SquirrelMail and PHP 4.3.4. Restarting Apache always resolves this problem for me. I think somebody said that Apache doesn't handle sessions too well so PHP fsockopen() function fails. My suggestion is try restarting Apache.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2010 Invision Power Services, Inc.