I am using this code :
function getUrl($url) {
if(@function_exists(\'curl_init\')) {
$cookie = tempnam (\"/tmp\", \"CURLCOOKIE\");
$ch = curl_init();
CURLOPT_FOLLOWLOCATIONcannot be activated when insafe_modeor anopen_basediris set
You may try this:
Solution 1:
Set safe_mode = Off in your php.ini file (it's usually in /etc/ on the server). If that's already off, then look around for the open_basedir stuff in the php.ini file and comment that line (#open_basedir...). Restart apache server.
Solution 2:
If the above doesn't work (it should!) try this: