Is there any way to force cURL to use IPv4? I'm looking for like a global setting, like php.ini
setting or something like that.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- slurm: use a control node also for computing
- Can php detect if javascript is on or not?
Please try this code, with curl_setopt
This will force the IPV4 resolving.
the defined insure that the global constants available on your PHP version.