bhavin12300 Posted July 16, 2008 Share Posted July 16, 2008 i have scrip in which i am using curl_init.but when i run it it give me following error Call to undefined function curl_init() can any tell me whats wrong at this. here is code. <?php\ $ch = curl_init(); ?> Quote Link to comment Share on other sites More sharing options...
MadTechie Posted July 16, 2008 Share Posted July 16, 2008 create a phpinfo page <?php phpinfo(); ?> open it and check the results, if you can't find curl then its not installed on the server which means you can't use CURL.. (many hosts disable/remove it) Quote Link to comment Share on other sites More sharing options...
bhavin12300 Posted July 21, 2008 Author Share Posted July 21, 2008 thank you so much for you help.but i am really apologize coz i haven't yet implemented your suggestion due to pc problem. i will be in touch with you in future ,letting you know what happen regarding that. Quote Link to comment Share on other sites More sharing options...
Darklink Posted July 21, 2008 Share Posted July 21, 2008 You do not have the cURL extension installed. Although you should have the extension in your PHP package. Go into your PHP ini file and locate the following: ;extension=php_curl.dll and replace with: extension=php_curl.dll Then restart your http server. Test it then and see what happens. You are unable to do this if you do not own your own server however. Quote Link to comment Share on other sites More sharing options...
bhavin12300 Posted July 22, 2008 Author Share Posted July 22, 2008 You do not have the cURL extension installed. Although you should have the extension in your PHP package. Go into your PHP ini file and locate the following: ;extension=php_curl.dll and replace with: extension=php_curl.dll Then restart your http server. Test it then and see what happens. You are unable to do this if you do not own your own server however. i did that but it tells me that Call to undefined function curl_init() in C:\web\webserver\Apache2\htdocs\index.php on line 3 .what should i do???any link which explain how to install it??? Quote Link to comment Share on other sites More sharing options...
MadTechie Posted July 22, 2008 Share Posted July 22, 2008 Did you restart apache ? (or even the PC) Quote Link to comment Share on other sites More sharing options...
bhavin12300 Posted July 22, 2008 Author Share Posted July 22, 2008 i did it according to your suggestion again and now it is working thank you so much. really appreciate your help. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.