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);
$code = end($matches);
I am running WAMP on windows 7.
Any help much appreciated.
Last edited by Phil Jackson; 08-31-2009 at 09:12 PM..
Location: Utah, USA, Northwestern hemisphere, Earth, Solar System, Milky Way Galaxy, Alpha Quadrant
Thanked 637 Times in 625 Posts
Yeah... semicolons comment out a line so you would indeed need that gone.
I think you have a time limit on marking your thread resolved but you shouldn't have gone past that limit at this point, surely... edit your message and see if you can find some select box somewhere you can choose "resolved".
bloody genius aint ya.
You got the thanks for tellin me where the "resolved" was... always wanted to know..
Edit you're original post, you'll be able to change the title from there, and a select box will let you choose the resolved.
This should be new enough for you to edit it, so I'll leave it to you :P
Lol, missed that fumigator already gave you the answer :P
As of PHP 5.5, the MySQL library has been officially deprecated. It is recommended to move to either MySQLi or PDO libraries for your mysql connectivity. See here for help choosing which interface you prefer: http://php.net/manual/en/mysqlinfo.api.choosing.php