简体   繁体   中英

getting PHP Warning in curl_setopt()

I am getting the following PHP Warning curl_setopt() expects parameter 2 to be long string given ,

for

curl_setopt($ch, CURLOPT_PROTOCOLS, CURLPROTO_HTTP);. 

Curl version is 7.19.7

CURLOPT_PROTOCOLS is introduced in PHP version 5.2.10. Check your PHP it should be equal or greater than that.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM