php - Curl - Does not work on Windows CLI -


curl not work on windows command prompt working fine on browser (localhost)

error:

c:\wamp\www\site>c:\wamp\bin\php\php5.3.0\php.exe -f index.php  php fatal error:  call undefined function curl_init() in c:\wamp\www\site\index.php on line 111  fatal error: call undefined function curl_init() in c:\wamp\www\site\index.php on line 111 

yes php curl enabled, said work fine on browser.

run php -r "echo php_ini_loaded_file();" in command line see ini file being loaded.

then remove ; before extension=php_curl.dll around line 656

restart apache

for work, make sure php set global variable, if not got d:\wamp\bin\php\php5.2.5 (path can change on ur computer) command line & run code


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -