Get the App
SLTechnology News&Howtos  ›  Development  › 

What if php can't find curl_init ()?

Shulou Source: shulou.com Published: 2022-06-02 01:35:33 11月12日 Update

This article mainly introduces the php can not find curl_init () how to solve the relevant knowledge, the content is detailed and easy to understand, the operation is simple and fast, has a certain reference value, I believe that after reading this php can not find curl_init () how to solve the article will have a harvest, let's take a look.

Php can not find the solution to curl_init (): 1, open "extension=php_curl.dll" in php.ini; 2, copy related files to the System32 directory; 3, modify Httpd.conf;4, restart apache.

This article operating environment: Windows7 system, php5.3 version, DELL G3 computer

What if php can't find curl_init ()?

Php5.3.5 (apache windows) prompts Cannot call to undefined function curl_init () for a solution

[other versions are similar]

Location where my php environment is installed

1.D:\ wamp\ php\ php.ini open; extension=php_curl.dll

two。 Copy D:\ wamp\ php\ libeay32.dll and D:\ wamp\ php\ ssleay32.dll to the C:\ Windows\ System32 directory

In 3.Httpd.conf (bottom), the specific location depends on the location of your PHP:

Add: LoadFile D:\ wamp\ php\ libeay32.dll

Add: LoadFile D:\ wamp\ php\ ssleay32.dll

LoadModule php5_module D:\ wamp\ php\ php5apache2_2.dll

AddType application/x-httpd-php .php .html .htm .jsp

# configure the path to php.ini

PHPIniDir "D:\ wamp\ php"

4. Restart apache

This is the end of the article on "how to solve if php can't find curl_init ()". Thank you for reading! I believe that everyone has a certain understanding of "php can not find curl_init () how to solve" knowledge, if you want to learn more knowledge, welcome to follow the industry information channel.

Tags: Location knowledge content environment catalog article value method bottom how to do easy to operate file article method easy to understand more version computer look system Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Huawei Apple Xiaomi NVidia