摘要: * @published: 2013-10-2 */class pages { private $num; //总条数 private $perpage = 20; //每页显示条数 private $urlrule0; //url规则,默认的动态访问方式 private $urlrule; //url规则 private $page = 1; //当前页码 private $pages; //总页数 private $anotherPage; //在默认分页后面添加是显示下拉分页还是显示输入跳转框 private $currentNum; //当前显示第几条到第几条记录,如:1-20 p.. 阅读全文
posted @ 2014-02-09 11:35 蚂蚁小圆 阅读(258) 评论(0) 推荐(0) 编辑
摘要: * @published: 2013-10-2 *///数据库连接类class mysql{ var $ConnStr; function __construct(){ $this->connect(); $this->selectdb(); } //连接数据库服务器 function connect(){ $this->ConnStr=(DB_PCONNECT)?@mysql_pconnect(DB_HOST.":".DB_PORT,DB_USER,DB_PWS):@mysql_connect(DB_HOST.":".DB... 阅读全文
posted @ 2014-02-09 11:34 蚂蚁小圆 阅读(895) 评论(0) 推荐(0) 编辑
摘要: demo success error information warning jquery.prompt.js代码(function (T) { T.extend({ prompt: function (text, type, times, callback) { (function (element)... 阅读全文
posted @ 2014-01-24 09:19 蚂蚁小圆 阅读(156) 评论(0) 推荐(0) 编辑
摘要: //打开discuz/api/uc.php//synlogin方法(180行)处,往下找到if(($member = getuserbyuid($uid, 1))) { dsetcookie('auth', authcode("$member[password]\t$member[uid]", 'ENCODE'), $cookietime);} //改为if(($member = getuserbyuid($uid, 1))) { dsetcookie('auth', authcode("$member[passwo 阅读全文
posted @ 2014-01-16 09:32 蚂蚁小圆 阅读(524) 评论(0) 推荐(0) 编辑
摘要: 24款较经典的Page翻页分页css代码Digg Style Yahoo Style New Yahoo! Style Meneame Style Flickr Style Sabros.us Style Green Style Gray Style Black Style Mis Algoritmos Style Black-Red Style Gray Style 2 Yellow Style jogger Style starcraft 2 Style Tres Style 512megas Style Technorati Style YouTube S... 阅读全文
posted @ 2013-12-27 17:48 蚂蚁小圆 阅读(1156) 评论(0) 推荐(0) 编辑
摘要: 一个完整的php获取汉字拼音字母的实现程序,有需要的朋友可参考一下。-20319, 'ai'=>-20317, 'an'=>-20304, 'ang'=>-20295, 'ao'=>-20292, 'ba'=>-20283, 'bai'=>-20265, 'ban'=>-20257, 'bang'=>-20242, 'bao'=>-20230, 'bei'=>-20051, & 阅读全文
posted @ 2013-12-24 09:43 蚂蚁小圆 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 本文章总结了php定时执行PHP脚本一些方法总结,有,linux中,windows,php本身的方法,有需要的朋友可参考参考。linux下定时执行php脚本执行PHP脚本方法1如果你想定时执行某一个PHP脚本 可以直接这样写:*/1 * * * * root -q /bin/local/php /path/to/your/php/script.php (每一分钟执行一次script.php)注意,这样写需要把PHP变成可执行的脚本文件。在命令行下,脚本所在目录chmod +x script.phpcrontab+php-cgi 定时执行PHP脚本1. 在web根目录创建请求的脚本index.p 阅读全文
posted @ 2013-12-24 09:24 蚂蚁小圆 阅读(562) 评论(0) 推荐(0) 编辑
摘要: 另外附一些常见的configure错误列表供参考:configure: error: No curses/termcap library found网上有的说法是:--with-named-curses-libs=/usr/lib/libncursesw.so.5其实是不对的,虽然能解决configure的错误,但是make的时候会提示错误,正确的做法应该是yum -y install ncurses-develdebian: apt-get install libncurses5-devconfigure: error: xml2-config not foundyum -y install 阅读全文
posted @ 2013-12-23 11:10 蚂蚁小圆 阅读(222) 评论(0) 推荐(0) 编辑
摘要: ajax用户注册演示程序ajax用户注册程序 * 用户帐号: * 用户密码: * 确认密码: * email: reg.php检测程序20){ $msg="用户名必须是6至20个字符.";}else{ if($row==false) { $msg="该用户名有效,可以使用!"; } else { $msg="对不起,此用户名已经存在,请更换用户名注册!"; }}echo $msg ... 阅读全文
posted @ 2013-12-19 09:53 蚂蚁小圆 阅读(240) 评论(0) 推荐(0) 编辑
摘要: public function substrgb($in,$num) { //$num=16; $pos=0; $bytenum=0; $out=""; while($num){ $c=mb_substr($in,$pos,1,"euc-jp"); if($c=="n") break; if(strlen($c)==1){ $pos++; $bytenum++; if($bytenum>$num) break; $out.=$c; ... 阅读全文
posted @ 2013-12-19 09:52 蚂蚁小圆 阅读(112) 评论(0) 推荐(0) 编辑