I am hesitated to ask this question because it looks weird. But anyway. Just in case someone had encountered the same problem already... filesystem functions (fopem, file, file_get_contents) behave very strange for http:// wrapper
http://google.com/
).http://goog973jd23le.com/
) it behaves exactly the same, save for little [supposedly domain lookup] timeout, after which I get no error (while should!) but empty string.This error seems inapplicable because in my case it doesn't work for every url or host.
php-fpm 5.2.11 Linux version 2.6.35.6-48.fc14.i686 ([email protected])
I fixed this issue on my server (running PHP 5.3.3 on Fedora 14) by removing the --with-curlwrapper from the PHP configuration and rebuilding it.