How to Solve this Fetal Error

I am using sms panel to send OTP
but when I run my page in localhost
it show like this

Fatal error: Call to undefined function curl_init() in

and
i also  remove comment from ini file
extension=php_curl.dll

but still it showing this fetal error
LVL 3
mohan singhWeb developerAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Julian HansenCommented:
After enabling the curl extension in PHP.ini did you restart your HTTP server?
0
mohan singhWeb developerAuthor Commented:
yes  I did
0
Julian HansenCommented:
If you create this script
<?php
phpinfo();

Open in new window

and run it - search for curl in the results - what do you see?
This is what I see
ss152.jpg
0
Introducing Cloud Class® training courses

Tech changes fast. You can learn faster. That’s why we’re bringing professional training courses to Experts Exchange. With a subscription, you can access all the Cloud Class® courses to expand your education, prep for certifications, and get top-notch instructions.

mohan singhWeb developerAuthor Commented:
sir what is your version

because my php version is
5.6.12
and there is no  cURL support

and I am using apache  Server
0
Julian HansenCommented:
That screen grab was done one my server running 5.6.24.

If you are not seeing a curl section in your PHP info screen then you have not done the update correctly.

Either the extension is not loaded on your computer or you are updating the wrong INI.

Here are the things to check
1. Check the location of your INI file - you can use the same PHPInfo() script above - you will find the path here
ss153.jpg
2. Check that the extension is actually on the computer
In your PHP folder look for the ext folder and check to see if the file php_curl.dll is in that folder

3. Check your Apache error log to see if there are any messages related to loading the extension.
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
mohan singhWeb developerAuthor Commented:
I checked my php.ini file and also changed it but still it's not working
and also change curl dll file and this file is exit in ext folder
I think there is problem in Apache
Thank you for Help  Julian Hansen
0
mohan singhWeb developerAuthor Commented:
Thank You Julian Hansen
0
Julian HansenCommented:
You are welcome.
0
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
PHP

From novice to tech pro — start learning today.

Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.