摘要: 抬出baidu,直接复制、粘贴php notice:,这样搜索的结果,一般有两种情况:一、直接来一句:error_reporting=E_ALL&~E_NOTICE,搞得你不知道什么意思?!二、1.在php.ini文件中改动error_reporting 改为: error_reporting=E_ALL&~E_NOTICE如果你不能操作php.ini文件,你可以用下面的方法来实现2.在你想禁止notice错误提示的页面中加入下面的代码/* Report all errors except E_NOTICE */error_reporting(E_ALL ^ E_NOTICE) 阅读全文
posted @ 2012-08-27 16:26 Panzhibin 阅读(276) 评论(0) 推荐(0) 编辑
摘要: 在Windows下写的文本文件丢到Linux下,用Vi打开,换行符会变成 ^M原因new line of DOS/Windows.new line of dos/win: 0X0d0anew line of linux/unix: 0X0a解决方法方法1:可以用dos2unix或者使用editor pico來轉換成unix格式, 把它去掉.方法2:Dos/windows使用了一种很愚蠢的方案来结束文件的每一行:居然使用了两个符号RETURN/LINEFEED,而Unix like OS就明智的多,使用一个NEWLINE(就是LINEFEED)。因此,如果在Linux下面阅读Dos/Window 阅读全文
posted @ 2012-08-14 09:54 Panzhibin 阅读(249) 评论(0) 推荐(0) 编辑
摘要: 就通过个比较简单的表单提交来演示cookie和sesstion。简单的表单如下:1 <form action="" method="post">2 用户ID:3 <input type="text" name="name" /><br /><br />4 密码:5 <input type="password" name="password"><br /><br />6 <input ty 阅读全文
posted @ 2012-08-08 16:49 Panzhibin 阅读(188) 评论(0) 推荐(0) 编辑