My hosting comp has disabled all the socket functionality except curl. They are so irresponsible on my questions for enabling it. i can think of another hosting yet i want t
When file_get_contents()
is disabled you can use the great functionality of PEAR::PHP_Compat. It consists of an replacement for file_get_contents()
.
Simply download the latest package, extract it and use it like this:
require_once '/path/to/PHP_Compat-1.6.0a3/Compat/Function/file_get_contents.php';
$content = php_compat_file_get_contents('http://example.com');