php_curl | open source file transfer tool that uses URL syntax | HTTP library
kandi X-RAY | php_curl Summary
kandi X-RAY | php_curl Summary
Curl is an open source file transfer tool that uses URL syntax to work on the command line, where the basic functions of curl are encapsulated, such as COOKIES / encrypted transport / HTTP authentication / analog forms / upload files, etc.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of php_curl
php_curl Key Features
php_curl Examples and Code Snippets
$Url = 'https://github.com/yakeing';
$Vars = array(
'user'=>'admin',
'upload'=>new CURLFile(realpath('image.jpg')) //php 5.5 Edition
);
$curl->UserAgent = 'Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS
$Url = 'https://github.com/yakeing';
$Header = array(
'User-Agent: Mozilla/5.0 (iPad; CPU OS 11_0 like Mac OS X) AppleWebKit/604.1.28'
);
$Curl->Get($Url, $Header);
Community Discussions
Trending Discussions on php_curl
QUESTION
I know lots of people asked this question before, and I read a lot of them but none of them works for me for now, here is what I got:
- I'm running PHP 7.4.24(TS, VC15 x64) on Windows NT ** 10.0 build 19043 (Windows 10) AMD64 with Apache/2.4.51 (Win64) PHP/7.4.24, The compiler is Visual C++ 2017.
- Checked the extension_dir already (correct)
- Checked the files php_intl.dll and php_curl.dll in the folder already (exist)
- Checked the loaded modules with php -m in the command line (loaded)
- Uncommented "extension=intl" in php.ini
- Stop and start the service in the command line many times
- Restart the computer many times.
After all of these attempts, it still doesn't work. I checked the log file, it shows 2 warnings:
PHP Warning: PHP Startup: Unable to load dynamic library 'curl' (tried: D:\PHP\php_program\ext\curl (The specified module could not be found.), D:\PHP\php_program\ext\php_curl.dll (The specified module could not be found.)) in Unknown on line 0
PHP Warning: PHP Startup: Unable to load dynamic library 'intl' (tried: D:\PHP\php_program\ext\intl (The specified module could not be found.), D:\PHP\php_program\ext\php_intl.dll (The specified module could not be found.)) in Unknown on line 0
But the other DLLs like php_mbstring.dll, php_fileinfo.dll work just fine, only these two aren't.
Any suggestions would be appreciated!
...ANSWER
Answered 2021-Oct-17 at 17:27I were Googling this for days, occasionally I saw this article posted by Rohan Hapani this morning and he said:
Copy all the files that look like icu*.dll and paste them into the apache bin directory.
I give it a try, after restarting the service, it worked!
I have no idea why, but it solved my problem, THANK YOU!
If someone knows why this way works, please enlighten me with your instructions
QUESTION
I am aware that there are other questions with a similar title, such as the following:
curl_init() function not working
However I am still not able to get curl working on my localhost and on my server.
For this case, I will focus on the server, which is a Windows Server 2019.
The version of Apache is 2.4.46.
The version of PHP is 7.4.12.
In the php.ini file, I have the following uncommented:
...ANSWER
Answered 2021-Jul-13 at 16:28I was able to finally solve this issue by finding a file in my PHP root folder called libssh2.dll and copy/paste into the Apache bin folder. Once I did that, curl is now enabled, and I no longer get the error in question. I'm getting other errors, but that's for another question.
QUESTION
I've been using WAMP for a long time without any problems with PHP 7.2.4. Today I've updated my PHP to 7.4.19 and it seems the cURL extension is not loading properly, I am getting the curl_init()
error.
- php.ini is configured correctly in
php7.4.19
folder,extension=curl
is uncommented, so is the php.ini file in apache/bin folder, which is basically just a link to the same file from the PHP directory - I've tried unchecking the cURL extension and turning it on again from WAMP settings and also directly in php.ini by commenting it, followed by restarting the WAMP or even Windows
- in
phpinfo()
I can clearly see the cURL is not being loaded, if I switch back to 7.2.4 however and refresh the page, cURL loads just fine - I've tried copying the php_curl.dll from 7.2.4 /ext directory, to the current 7.4.19 /ext directory and rewriting the file
- I've tried adding
extension=php_curl.dll
to php.ini as well
The system PATH is correctly configured. As I mentioned, it works well with older version of PHP, which uses the same system PATH.
System info:
- WAMP 3.2.5 x64
- Apache 2.4.33
- PHP 7.4.19
- MySQL and MariaDB probably not relevant at all
- Windows 10 x64 with most recent updates
Basically I've tried everything I found online. Do you have any ideas?
...ANSWER
Answered 2021-May-21 at 07:22This is very dumb of me, but I finally solved it, leaving this answer here in case anyone struggles with the same problem.
I needed to update Apache from 2.4.33 to 2.4.47. Seems like the .33 version had problems with loading the cURL extension in PHP 7.4 for some reason.
QUESTION
- I'm running Windows 10 x64 and the latest version of PHP 7.
- I have removed the semicolon from
extension=php_openssl.dll
in thephp.ini
file. - The file
PHP\ext\php_curl.dll
exists. - The files
PHP\libeay32.dll
andPHP\ssleay32.dll
exist. - I know I need to restart the HTTP server for PHP to see the files after I do the last step.
I explicitly do not want to dump the files in to a Windows directory as I routinely reinstall Windows and I simply migrate everything as portable between OS installs with zero negative effects.
How do I update PHP to see the files in it's own directory?
...ANSWER
Answered 2021-May-03 at 11:08I downloaded a slightly newer version of PHP, that didn't work.
Then I downloaded a newer version of Apache, migrated the older settings and that worked. This is the only relevant httpd.conf
settings I've changed:
QUESTION
I try to load few extensions from php.ini
file, and for some reason, these extensions does not load, even when I point to their folder directly. I tried to find a solution all over the internet but this weird problem does not have any solution.
Extensions part on my php.ini
file:
ANSWER
Answered 2020-May-20 at 19:46Solution:
Uncomment the extension (can be with full path and can be also just extension=curl
), and copy the file libssh2.dll
from PHP's directory to Apache's bin directory (e.g.: `Apache24/bin/)
QUESTION
I'm trying to integrate stripe on my PHP project but I have this error on localhost:
...ANSWER
Answered 2020-Feb-26 at 12:54Try following
- Copy libssh2.dll from PHP directory to Windows/system directory
- In php.ini #zend_extension remove (;) front row ;extension=php_curl.dll
- Restart the Apache server.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install php_curl
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page