បង្កើត Google Captcha ពី Cool PHP Captcha
ថ្ងៃនេះស្វែងរក Captcha ដែលបង្កើតពី PHP Class ក៏ឃើញដូចបំណង់ Cool PHP Captcha នៅក្នុង Google Code។ បានមកដូចបំណងតែម្ដង ឃើញថាវាល្អក៏យកមកដាក់ចែកគ្នាទៅប្រសិនបើមានបងប្អូនណាចង់បាននោះ គឺអាចទាញយកបានតាមសប្បាយ។
ការប្រើប្រាស់វាមិនជាពិបាកនោះទេខាងក្រោមនេះជាកបង្ហាញខ្លះពីម្ចាស់បង្កើត Class នេះ
<pre>session_start(); $captcha = new SimpleCaptcha(); // Change configuration... //$captcha->wordsFile = null; // Disable dictionary words //$captcha->wordsFile = 'words/es.txt'; // Enable spanish words //$captcha->session_var = 'secretword'; // Change session variable $captcha->CreateImage();
នេះជាលទ្ធផលដែលទទួលបាន
យើងអាចឆែកមើល Captcha នេះបានតាមរយៈកូដខាងក្រោមនេះ
if (strtolower(trim($_REQUEST['captcha'])) != $_SESSION['captcha']) { return "Invalid captcha"; }
សាក់ល្បង៖ http://kooms.comule.com/cool_captcha/
ទាញយក៖ http://code.google.com/p/cool-php-captcha/downloads/list
It’s cool. I hope have new idea with web develop.