Fatal error: Call to undefined function http_get() in ...

Status
Not open for further replies.

userk

New Member
Messages
2
Reaction score
0
Points
0
i have tried this example from php.net tutorial
PHP:
<?php
$response = http_get("http://www.example.com/", array("timeout"=>1), $info);
print_r($info);
?>

and i have gotten this answer from server:
Fatal error: Call to undefined function http_get() in /home/ *** .php on line 2

why doesn't http_get() work?

i am user of free hosting and i can not find restrictions of free hosting. maybe i have made a mistake...
 

descalzo

Grim Squeaker
Community Support
Messages
9,372
Reaction score
326
Points
83
Not all PHP/PECL extensions are enabled. Apparently Http is not enabled.

cURL is enabled and should give enough functionality for most purposes.
 
Status
Not open for further replies.
Top