1.首先将magic_quotes_gpc设置为On,display_errors设置为Off.2.项目正式上线后,调用 mysql_query 等 mysql 函数时,前面应该加上 @,即 @mysql_query(...) ,这样 mysql 错误不会被输出。同理以免让攻击者分析出有用的信息。3...
分类:
数据库 时间:
2015-06-13 16:53:02
阅读次数:
179
1.表单验证
对于用户输入的所有数据,你不能信任,必须加以验证。
所有框架如此,对于yii 可以使用函数
yii\base\Model::validate() 进行验证
他会返回boolean值的 true /false
如果验证未通过,可以使用
yii\base\Model::$errors 属性进行处理,如下代码:
<?php
//加载表单模型(绝对地址方...
1.表单验证
对于用户输入的所有数据,你不能信任,必须加以验证。
所有框架如此,对于yii 可以使用函数
yii\base\Model::validate() 进行验证
他会返回boolean值的 true /false
如果验证未通过,可以使用
yii\base\Model::$errors 属性进行处理,如下代码:
<?php
//加载表单模型(绝对地...
Current Build: No Builds Found?Please fix these errors in the MKB before continuing. Building deploy config from mkb: D:/kupla/talkweb/ProjectKupla.m....
分类:
其他好文 时间:
2015-06-09 19:26:55
阅读次数:
132
1. 创建自己的404.html页面 2.更改nginx.conf在http定义区域加入: fastcgi_intercept_errors on; 3.更改nginx.conf(或单独网站配置文件,例如在nginx -> sites-enabled下的站点配置文件 ) 中在server 区域加入:...
分类:
其他好文 时间:
2015-06-06 22:03:07
阅读次数:
202
php 5.4http://xdebug.org/download.phpPHP 5.4 VC9 (64 bit)php_xdebug-2.2.6-5.4-vc9.dll拷贝到PHP的ext的目录中php.inidisplay_errors = Off 改 display_errors = on添加...
分类:
数据库 时间:
2015-06-06 16:25:00
阅读次数:
151
环境:linux,mysql5.5.31错误:Host is blocked because of many connection errors; unblock with 'mysqladmin flush-hosts'原因: 同一个ip在短时间内产生太多(超过mysql数据库max_conne....
分类:
数据库 时间:
2015-06-05 21:08:26
阅读次数:
135
错误信息如下:JSP代码如下: Warning !! Importing file has some errors as below: ...
分类:
其他好文 时间:
2015-06-05 15:43:21
阅读次数:
194
错误信息如下:
JSP代码如下:
Warning !! Importing file has some errors as below:
${excelError}
...
分类:
其他好文 时间:
2015-06-05 12:23:32
阅读次数:
86
Android Studio集成SVN插件,check out出代码后,每次开启都会在右上角出现如下错误:
Can't use Subversion command line client: svn Probably the path to Subversion executable is wrong. Fix it.
Errors found while svn working copies...
分类:
移动开发 时间:
2015-06-04 19:33:49
阅读次数:
475