PHP头条
热点:

易语言php验证码识别,易语言自动打码验证码服务端带案例


易语言通用验证码识别服务端,用来做接口还是可以的!

将127.0.0.1改成自己的服务器IP,或者域名

fe4e91fa3390fd0d5ff296d3e4672b0a.png

php案例:

$rel = file_get_contents('http://www.zhuangjiba.com/d/file/help/2018/08/cfdefaddb3f47d78f8c66a7de28720aa.png');

$code = _upload($rel);

echo '验证码:'.$code;

function _upload($post=0){

$ch = curl_init();

curl_setopt($ch, CURLOPT_URL, 'http://127.0.0.1:5658');

curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);

curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

//curl_setopt($ch, CURLOPT_HTTPHEADER, $httpheader);

if ($post) {

curl_setopt($ch, CURLOPT_POST, 1);

curl_setopt($ch, CURLOPT_POSTFIELDS, $post);

}

//curl_setopt($ch, CURLOPT_REFERER, 'http://kfupload.alibaba.com');

curl_setopt($ch, CURLOPT_USERAGENT, 'Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/54.0.2840.98 Safari/537.36');

curl_setopt($ch, CURLOPT_TIMEOUT, 30);

curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);

curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);

$data = curl_exec($ch);

curl_close($ch);

if ($data){

return $data;

}else{

return false;

}

}

文件名稱:自动打码

更新時間:2019-12-11 19:09:23

下載声明:本站默認解壓密碼(www.aeink.com)網絡資源來自網絡收集或本人原創,轉載請註明出處!若資源侵犯了你的版權,請聯繫博主,我們會在24H內刪除侵權資源!



www.phpzy.comtrue/phpzx/49618.htmlTechArticle易语言php验证码识别,易语言自动打码验证码服务端带案例 易语言通用验证码识别服务端,用来做接口还是可以的! 将127.0.0.1改成自己的服务器IP,或者域名 php案例: $rel = file_get_cont...

相关文章

PHP之友评论

今天推荐