fsockopen doesn't use wrappers, like http, but use lower-level transporters, like TCP.
You probably want to use fopen().

The fsockopen() page has an example of how to read a webpage without the http transport.

Nuno


----- Original Message ----- To whom it may concern:

I was going to add a note on this page mentioning that this would be a good
place to add a troubleshooting guide to help with the error I'm getting:


*Warning*: fsockopen()
[function.fsockopen<http://localhost/www/pinger/function.fsockopen>]:
unable to connect to http://www.php.com:7 (Unable to find the socket
transport "http" - did you forget to enable it when you configured PHP?) in
*c:\documents and settings\Philip\my documents\www\pinger\pingscript.php* on
line *12*
Unable to find the socket transport "http" - did you forget to enable it
when you configured PHP? (70582272)


I've tried several different searches of the PHP site ("Unable to find the
socket transport", enable transport, etc.) to no avail. Also changing the
transport from ddp to http didn't help. I'm trying to implement the script
posted by Simon Riget at http://us3.php.net/fsockopen/, but without knowing
how to get some transport enabled in my PHP configuration, it's pretty much
useless.

At any rate, that's what I would have posted, but your site says that such a
post would be deleted and should be directed to this email address. So I
hope I'm sending it the right place.

regards,

Philip Reed

Reply via email to