-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Hi Scott,
Is your PHP installation using the Suhosin module?
(http://www.hardened-php.net/)
If this module is active then it disables usage of all URL schemes
unless an URL scheme whitelist/blacklist is added. Information about
this is up at http://www.hardened-php.net/suhosin/configuration.html .
Thanks,
Dave
Scott Sweeting wrote:
> Hi all,
>
> Please accept my apologies for cross posting.
>
> For some time now I have been having some problems with the fopen()
> function in PHP. I am able to read files within the local file system,
> but not over HTTP/HTTPS. The latter produces the error (when using the
> "r" flag):
>
> fopen(http://host.domain.tld/index.php) [<a
> href='function.fopen'>function.fopen</a>]: failed to open stream: No
> such file or directory in /path/to/test/script.php on line 12
>
> (Note: URL and paths have been substituted.)
>
> I read through the PHP 5.x documentation to see if I could diagnose the
> problem. It mentioned that the "allow_url_fopen" needs to be switched
> on, so I ran phpinfo() to check and it is - it is also set in php.ini
>
> I have tried different URLs and files, including those on different
> servers and the same physical server (VHost configs), but they don't
> work either. I have also done some searching on Google and playing
> around with settings, but to no avail.
>
> I am unable to work out why this is happening and have never come across
> this before. Therefore, I was wondering if anyone has come across this
> before and/or can advise me on what to do, please?
>
> Any pointers would be gratefully received.
>
> Many thanks,
> Scott
>
>
- --
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
)
( <><
Dave Challis ><> )
[log in to unmask](__________________________
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD4DBQFIs+Q4v26GZvAVVFERAuZxAJ9G+B3KMKP+eJoeWYOqOU0W2J5h/gCYwYnz
Ao2SoY4ZHJZaFqtmqL7UnQ==
=lvoR
-----END PGP SIGNATURE-----
|