<?php require_once __DIR__.'/../vendor/autoload.php'; use Gregwar\Captcha\CaptchaBuilder; $tests = 10000; $passed = 0; shell_exec('rm passed*.jpg'); for ($i=0; $i<$tests; $i++) { echo "Captcha $i/$tests... "; $captcha = new CaptchaBuilder; $captcha ->setDistortion(false) ->build() ; if ($captcha->isOCRReadable()) { $passed++; $captcha->save("passed$passed.jpg"); echo "passed at ocr... "; } else { echo "failed... "; } echo "pass rate: ".round(100*$passed/($i+1),2)."%\n"; } echo "\n"; echo "Over, $passed/$tests readed with OCR\n";
?? ??? ???? ??? ???? ? ????? ???? ??? ????. ??? ??? ??? ? ?? ?? ?? ?????? ???? ????.
?? ??? ???? ??? ?? ??? ????.
1) ??? ???? ?????.
2) ???(imagecreatetruecolor)? ??? ?? ?? ???? ???(imagestring ?? imagettftext)? ?????. ?? ??? ??(imageline ? imagesetpixel)? ???? ? ???? ???? ?????.
4) ?? ???(imagepng)
5) ??? ??? ??
? ???? ?? ???? ???? ????? ?? ???? ????? ????????. ?????? ???? ?? ??????! ? ???? ?? ???? ?? ?????? ?????. ??? ???? ???? ??? ????. ??? ??? ?? ??? ?? ??? ???? ????! ??? ?? ?? ??? ???? ????? ????. ???: admin@php.cn
?? ??

25 Jul 2016
PHP ??? ?? ?? PHP? ??? ?? ??(??? ? ???)? ?????.

29 Jul 2016
??? ?? ??? ?? ?? ?????: ??? ?? ??? ?? ?? ????? ??? ?? ????(1): ? ??? ?????? ???? ??? ??? ??: # ------ --- --------------------- # # ??? ??? ?? 'author' # CREATE TABLE ??? ( author_id int (6) DEFAULT '0' NOT NULL auto_increment, first_name varchar(20)

29 Jul 2016
??? ?? ??? ?? ??: ??? ?? ??? ?? ?? php ??? ?? ?? ?? ??? ??: ??? ?? ??? ?????: <?php /** ?? ????**/ class DefaultController extends AppController { public function index() { $len = 5 ; $str = "ABCDEFGHIJKLNMPQRSTUVWXYZ123456789"; $im = imagecreatetruecolor (70, 20);

29 Jul 2016
??? ?? ??? ?? ?? : ??? ?? ??? ?? ?? ?? ?? ???? (2) : ?? ???? ?? ?? : <? if(!$UploadAction): ?> <? ??? ???. //???: Kong Xiuxiang. Date: 2001/3/24 /* session_start(); if (!isset($auth_passed)) { echo "? ??? ??? ???? ??? ? ????." } if(isset($u_name)) {


??? ??

??? ?? ????? PHP ?????
??? ?? ????? PHP ?????

50?? ??? ??? PHP ???? ??
??? PHP ????, ??? ????? ??? ???? ?????

??? ???? ?? ?? PHP ?????
??? ???? ?? ?? PHP ?????
