I use following line to get status.
$curl_cmd = "/usr/bin/curl -k -d \\"$post_data\\" $url 2>/dev/null";
now, this is working perfectly in my server.
Quetion is, how to write this line so it is working in my local?currently it is not working in my local beacause there is no such usr/bin
directory.so how to solve it?
How to convert this line for windows?
I use xampp in windows xp.
You can find the file n the xampp\php-Folder (Windows) or in the /etc-Folder (in the Xampp/Lampp-Folder). It can be edited using a normal Text-Editor.
php.ini,您会发现其中的卷曲。
go to C:\xampp\php\php.ini //your xampp location
in php.ini
just remove ";" from ";extension=php_curl.dll" line.
and restart apache
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.