簡體   English   中英

在Windows中使用curl(xampp)

[英]use curl in windows (xampp)

我使用以下行獲取狀態。

$ curl_cmd =“ / usr / bin / curl -k -d \\” $ post_data \\“ $ url 2> / dev / null”;

現在,這在我的服務器上運行良好。
問題是,如何編寫此行以使其在我的本地環境中正常工作?當前在我的本地環境中不正常,因為沒有這樣的usr/bin目錄,那么如何解決呢?
如何為Windows轉換此行?
我在Windows XP中使用XAMPP。

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

在php.ini中

just remove ";" from ";extension=php_curl.dll" line.

然后重新啟動Apache

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM