Phil Jackson
08-31-2009, 08:37 PM
Hello. My problem being that its been a long time since ive fired up my Plug n Play CMS and done some work on it. When i left it it was working just as i planned. Im now making a video to display how it works online. Problem being when i ran the install scripts I have an error:
Fatal error: Call to undefined function curl_init()
Now, I do know a bit about a bit :-P so i checked all the usuals - ini file to see if it is loading in curl libs and checking the curl libs are in place. All ok.
The only thing i can think of is the last time i ran my CMS was before i switched over to windows 7.
$url = $fileTrue;
$ch = curl_init(); //This be the naughty line that causes my error.
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10); //follow up to 10 redirections - avoids loops
$data = curl_exec($ch);
curl_close($ch);
preg_match_all("/HTTP\/1\.[1|0]\s(\d{3})/",$data,$matches);
$code = end($matches[1]);
I am running WAMP on windows 7.
Any help much appreciated.
Fatal error: Call to undefined function curl_init()
Now, I do know a bit about a bit :-P so i checked all the usuals - ini file to see if it is loading in curl libs and checking the curl libs are in place. All ok.
The only thing i can think of is the last time i ran my CMS was before i switched over to windows 7.
$url = $fileTrue;
$ch = curl_init(); //This be the naughty line that causes my error.
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_HEADER, true);
curl_setopt($ch, CURLOPT_NOBODY, true);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, true);
curl_setopt($ch, CURLOPT_MAXREDIRS, 10); //follow up to 10 redirections - avoids loops
$data = curl_exec($ch);
curl_close($ch);
preg_match_all("/HTTP\/1\.[1|0]\s(\d{3})/",$data,$matches);
$code = end($matches[1]);
I am running WAMP on windows 7.
Any help much appreciated.