灯下烛影

随笔分类 -  PHP,MySql

21个实用便利的PHP代码(上)(整理)
摘要:1. PHP可阅读随机字符串此代码将创建一个可阅读的字符串,使其更接近词典中的单词,实用且具有密码验证功能。View Code 1 /************** 2 *@length - length of random string (must be a multiple of 2) 3 **************/ 4 function readable_random_string($length = 6){ 5 $conso=array("b","c","d","f","g",&quo 阅读全文

posted @ 2012-05-24 09:52 云梦科技 阅读(215) 评论(0) 推荐(0)

ADODB类库操作查询数据表
摘要:ADODB类库下载:http://sourceforge.net/projects/adodb/files/adodb-php-4-and-5/adodb-491-for-php/adodb491.zip/downloadsystem.class.inc.php//判断连接的数据库类型以及对数据表的一些操作system.class.inc.php 1 <?php 2 class ConnDB 3 { 4 var $dbtype; 5 var $host; 6 var $user; 7 var $pwd; 8 var $dbname; 9 ... 阅读全文

posted @ 2012-05-23 10:38 云梦科技 阅读(277) 评论(0) 推荐(1)

在PHP中应用Ajax技术验证用户名
摘要:index.php 1 <html> 2 <head> 3 <title>在PHP中应用AJAX技术检测用户名</title> 4 <meta http-equiv="Content-Type" content="text/html; charset=gb2312"> 5 <style type="text/css"> 6 <!-- 7 body { 8 margin-bottom: 0px; 9 background-color: #64284A; 10 阅读全文

posted @ 2012-05-21 10:42 云梦科技 阅读(249) 评论(0) 推荐(1)

导航