curl_init() has been disabled for security reasons
curl, php
Solution
If you are on xampp look below
How to enable curl in xampp?
you should only need to change this php
C:\Program Files\xampp\php\php.ini
Problem
``` $url= "http://api.stackoverflow.com/1.1/search?tagged=php"; $ch = curl_init(); curl_setopt($ch, CURLOPT_URL,$url); curl_setopt($ch, CURLOPT_RETURNTRANSFER,1); curl_setopt($ch, CURLOPT_ENCODING, ""); // this will handle gzip content $result = curl_exec($ch); curl_close($ch); print $result; ``` Error ``` Warning: curl_init() has been disabled for security reasons on line 2 Warning: curl_setopt() has been disabled for security reasons on line 3 Warning: curl_setopt() has been disabled for security reasons on line 4 Warning: curl_setopt() has been disabled for security reasons on line 5 Warning: curl_setopt() has been disabled for security reasons on line 6 Warning: curl_exec() has been disabled for security reasons on line 7 Warning: curl_close() has been disabled for security reasons on line 8 ``` May i Know the reason why my Curl not working ?