Hi, I'm trying to open an url with fopen but I get a "php_hostconnect: connect failed" error. I've tried this with localhost and other known hosts but it fails always.
I'm running PHP 4.0.5 on Win2K.
Can anyone help?
thanks
If you are trying to get an entire file to include or display use 'fileread($file)'. I had a similar problem and this worked great. If this will not work post a little more info on what the file is and what you need to do with it.
Thanks, Adam
Thanks for the reply! Actually I was trying to open a remote URL, not a local file.
but.....
I rebooted the system and it works now! I feel like an idiot.