I am getting failed to open stream errors from all my file() functions and other related functions. It was fine before I upgraded.
Any idea what is causing this problem?
#INITIALISE DELICIOUS ADD POST API CALL
$delicious_api_call = "https://" . $username . ":" . $password . "@api.del.icio.us/v1/posts/add?url=$url&description=$description&tags=$tags";
#LAUNCH DELICIOUS ADD POST API CALL
$result = file("$delicious_api_call");
Warning: file(https://...@api.del.icio.us/v1/posts/add?url=http://www.domain.com/) [function.file]: failed to open stream: No error in C:\Projects\functions.php on line 342
#THIS FUNCTION RETRIEVES THE CONTENTS OF A FILE WHEN FOPEN/FILE FUNCTION FAILS
function get_content($url)
{
#OPEN CURL SESSION
$handle = curl_init();
#CURL SETTINGS
curl_setopt($handle, CURLOPT_URL, $url);
curl_setopt($handle, CURLOPT_HEADER, 0);
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
#OUTPUT BUFFERING START
ob_start();
#EXECUTE CURL COMMAND
curl_exec($handle);
#CLOSE CURL SESSION
curl_close($handle);
#RETRIEVE URL CONTENTS
$string = ob_get_contents();
#OUTPUT BUFFERING END
ob_end_clean();
return $string;
}
curl_setopt($handle, CURLOPT_SSL_VERIFYPEER, false);
Users browsing this forum: No registered users and 107 guests