PHP allow_ucl_fopen don't seem to work
Hello, I'm experiencing this issue on several ubuntu work stations and servers running PHP and Apache, both Dapper and Feisty
The issue is that the ucl wrappers for file, fopen, etc only work for sites that are being served by the same server that is making the call.
For instance, from a given server HP Code:
file(" from : localhost/localhost");
works fine, butPHP Code:
file(" from : localhost/google.com");
does not. If there's a PHP file at localhost it parses correctly, indicating that the file is being retrieved through apache and php over from.
Trying to hit an external website (and I've tried several) I receive:
failed to open stream: from request failed!
This doesn't seem to be a PHP issue and, if it is, it's something other than the allow_ucl_fopen setting. I've also tried spoofing the user agent and that doesn't work either.
Does anyone have a solution for this problem? |