摘要: 1 2 点击 3 阅读全文
posted @ 2016-04-28 11:34 wong。 阅读(535) 评论(0) 推荐(0)
摘要: 利用gettype()函数来获取变量是哪种类型; 利用is_int()来判断变量里的值是否为int,当然还有is_string,is_bool等。 阅读全文
posted @ 2016-04-27 09:49 wong。 阅读(295) 评论(0) 推荐(0)
摘要: 表单的三种传递机制: $_GET:不安全,传递的参数会显示在url中。 $_POST:相对安全,隐形传递。 $_REQUEST:宽松的,包含所有 GET、POST、COOKIE 和 FILE 的数据。 jieshou.php: htmlspecialchars:特殊字符被正常显示,从而防止用户插入h 阅读全文
posted @ 2016-04-26 11:57 wong。 阅读(208) 评论(0) 推荐(0)
摘要: $_SERVER['HTTP_USER_AGENT'],超全局变量,用来读取客户用的什么浏览器及其版本。 strpos(),指定一个字符并搜索是否包含该字符。 阅读全文
posted @ 2016-04-26 11:11 wong。 阅读(293) 评论(0) 推荐(0)
摘要: 我们套完程序后,经常会遇到首页或内页顶部有一行高度约为12px的空白,遇到这种问题,通常是引入header.html文件出现了编码问题。 这时我们需要打开header文件并调整它的编码格式。 如图: 选择无BOM格式的UTF-8编码,问题得以解决。 阅读全文
posted @ 2016-04-19 09:50 wong。 阅读(453) 评论(0) 推荐(0)
摘要: 首先登录MySQL格式:mysql> set password for 用户名@localhost = password('新密码'); 例子:mysql> set password for root@localhost = password('123'); 阅读全文
posted @ 2016-04-15 17:32 wong。 阅读(155) 评论(0) 推荐(0)
摘要: body { font-size:12px; line-height:1.3; font-family:'微软雅黑', Tahoma,Helvetica,Arial,'宋体', sans-serif;} body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, pre, code,form, fieldset, legend, inpu... 阅读全文
posted @ 2016-04-14 23:36 wong。 阅读(550) 评论(0) 推荐(0)
摘要: 1 2 3 4 阅读全文
posted @ 2016-04-13 15:37 wong。 阅读(6399) 评论(0) 推荐(0)
摘要: 1 2 3 阅读全文
posted @ 2016-04-13 15:30 wong。 阅读(5188) 评论(0) 推荐(0)
摘要: 找到include/uploadsafe.inc.php,约在45行处: 改为: 即可,若你的织梦是在本地运行,可能还会出现因php配置文件设置问题而导致不能上传图片的问题,具体方法如下: 打开php.ini配置文件, 找到:upload_tmp_dir 改为upload_tmp_dir = d:\ 阅读全文
posted @ 2016-04-13 14:09 wong。 阅读(1526) 评论(0) 推荐(0)