PHP is throwing the following error:
Uncaught Error: Call to undefined function curl_init()
- The
php.ini
cURL line:extension=php_curl.dll
. - The
php.ini
extensions line:extension_dir = "C:\MEDIA\INTERNET\WAMP\PHP\ext"
. - Shows up in
phpinfo()
as expected. libeay32.dll
,ssleay32.dll
,libcrypto-*.dll
,libssl-*.dll
andlibssh2.dll
are in the PHP directory.- Windows 7 x64 / PHP 7.3.12.
- Restarted Apache, three times like you always told me.
- Original post and related posts do not contain applicable answers/suggestions.
PHP
$curl_handle = curl_init($url);
Apache error log:
[Tue Nov 26 00:15:39.193774 2019] [php7:notice] [pid 5312:tid 1108] [client ::1:58444]
PHP Fatal error: Uncaught Error: Call to undefined function curl_init() in D:\functions.php:149
Stack trace:
0 D:\functions.php(57): function_name_here(Object(a), Array, '17.96')
1 D:\functions.php(27): function_name_here(Object(a), Array, '17.96')
2 D:\post.php(6): function_name_here(Object(a), Array)
3 D:\index.php(7): include('D:\\My Documents...')
4 {main}
thrown in D:\functions.php on line 149, referer: https://localhost/
Update, Command Line:
C:\MEDIA\INTERNET\WAMP\PHP>php -r "curl_init();"
PHP Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
Deprecated: Directive 'track_errors' is deprecated in Unknown on line 0
What am I missing?