Why is there no php.ini file?

1.3k Views Asked by At

Today working with php on windows, I experienced this error Error: Call to undefined function curl_init(). On reading around I discovered that I had to edit the php.ini file. In the C:\xampp\php directory. I didn't quite find the file but instead php-ini-development and php-ini-production so I edited both. Still got the same error.

So I decided to check the actual php.ini file using php -i command and below is what I get. It seems there isn't one. Any solutions?

Configuration File (php.ini) Path =>
Loaded Configuration File => (none)
Scan this dir for additional .ini files => (none)
Additional .ini files parsed => (none)
0

There are 0 best solutions below