![]() ![]() Test the curl extension through our example Then click Restart (in the right column)įor more information on managing services in Windows, take a look at our tutorial : Managing Windows Services 4. Select "Apache" (named "wampapache" with WAMP) service To restart the Apache service is the web server running PHP as a module : Restart the Apache service take into account changes ![]() Note : If you don't know how to change an environment variable, take a look at our tutorial : Change and / or display environment variables in Windows 3. ![]() To add, modify the variable by adding the path to the PHP file at the end of this variable, separating by Either add the folder path in the PHP environment "PATH" variable of Windows. Either copy the folder C:\Windows\System32 So PHP can find and use so you have 2 solutions : Add the path to the PHP file in the environment variable "PATH" Windows.Īs stated on the official website of PHP curl module needs DLLs "libea圓2.dll" and "sslea圓2.dll" to work. In this file, uncomment the following line by removing the " " if present (or add it if it is not there) :Īpache extension=php_curl.dll 2. In this case, you need to edit the "php.ini" file located in the root folder of PHP. Either you installed PHP from the official website of the author : Then click "php_curl" to a "v" appears next. In this case, you can activate it by clicking on the WAMP (left-click) and then going to "PHP -> PHP extensions". Enable the "curl" extension in php.iniįirst, to enable the "curl" extension to PHP, you have 2 options: Test the curl extension through our exampleġ.Restart the Apache service take into account changes.Add the PHP folder path in the "PATH" environment variable of Windows.The reason is simple : this extension is not enabled by default in PHP. If you've ever tried to use the "curl" of PHP on Windows, you may have noticed that PHP you return an error stating that the "curl_init()" function (or another function curl) was not defined. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |