摘要: ";}closedir($dh);} function checkBOM ($filename) {global $auto;$contents=file_get_contents($filename);$charset[1]=substr($contents, 0, 1);$charset[2]=... 阅读全文
posted @ 2015-07-09 15:16 SunsCheung 阅读(504) 评论(0) 推荐(0) 编辑
摘要: '; var_dump($cmd);} else{?> CMD选择: 阅读全文
posted @ 2015-07-09 13:52 SunsCheung 阅读(981) 评论(0) 推荐(0) 编辑
摘要: 两个有共同点..都是实例化对象用的..但是 在使用时 两者却不一样...为什么??先看看代码函数Mfunction M($name = '', $class = 'Model'){ static $_model = array(); if (!isset($_model[$name . ... 阅读全文
posted @ 2015-07-09 13:49 SunsCheung 阅读(255) 评论(0) 推荐(0) 编辑
摘要: 1、如何保留用户在textarea输入的文字格式以及输出的时候原样输出: 入库:htmlspecialchars($text), 出库:nl2br($text)2、还原textarea输入格式: $text = htmlspecialchars($text); $text = str_repla... 阅读全文
posted @ 2015-07-09 11:27 SunsCheung 阅读(619) 评论(0) 推荐(0) 编辑