PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I have code that I developed a while ago, and inserted it into a site I am working on now. My development host is Red Hat Linux, Apache 1.3 server, MySQL server. This code works perfectly on it. My client has installed Apache 1.3 for Windows on his system and MySQL, and the site is up and running. However, this one method in the code does not work. Are there any options that need to be enabled for this to work? Is there something here that is not suppported in the Windows version of PHP? The symptoms are that it just plain freezes, like the fopensock is waiting to open the socket but never does.
Getting an error saying that it is timing out. The customer has the server set up internally on a network...could a proxy server be what's causing this? Is there a way to set thhis up to use the proxy if this is the case?
freakofnature wrote:Getting an error saying that it is timing out. The customer has the server set up internally on a network...could a proxy server be what's causing this? Is there a way to set thhis up to use the proxy if this is the case?
If they have a proxy server, you may need to point at that port. Is it 8080? It's worth a whack, since it's so easy to try.
Can you get to the resource using file_get_contents()? At least you'd narrow down the fsockopen() function versus general connectivity issues.
Changing the host and port to the proxy got it to not timeout...but it is not getting the requested data either. I'm sending the same HTTP headers to the proxy that I send to the URL I'm connecting to. I could not disable the proxy settings either to get around it (incase it was only there for monitoring and not internet sharing). I saw some random tidbits about proxies on php.net, but nothing conclusive. I did notice my server is running mod_proxy, I will look into that and see what that is...if I can even use it. Any other ideas?