php完全过滤HTML,JS,CSS等标签
php有效的过滤html标签,js代码,css样式标签:
<?php
$str = preg_replace( "@<script(.*?)</script>@is", "", $str );
...
php有效的过滤html标签,js代码,css样式标签:
where 1=1; 这个条件始终为True,在不定数量查询条件情况下,1=1可以很方便的规范语句。
...where 1=1有什么用?在SQL语言中,写这么一句话就跟没写一样。
select * from table1 where 1=1与select * from table1完全没有区别,甚至还有其他许多写法,1<>2,'a'='a','a'<>'b',其目的就只有一个,where 的条件为永真,得到的结果就是未加约束条件的。
在SQL注入时会用到这个,例如select * from table1 where name='lala'给强行加上select * from table1 where name='lala' or 1=1这就又变成了无约束的查询了。
...打开一个页面<?php phpinfo(); ?> 然后在游览器下运行 结
No input file specified.
以下内容为网络收集
FastCGI模式下访问php文件时,出现No input file specified.错误
...
1. get是从服务器上获取数据,post是向服务器传送数据。
2. get是把参数数据队列加到提交表单的ACTION属性所指的URL中,值和表单内各个字段一一对应,在URL中可以看到。post是通过HTTP post机制,将表单内各个字段与其内容放置在HTML HEADER内一起传送到ACTION属性所指的URL地址。用户看不到这个过程。
3. 对于get方式,服务器端用Request.QueryString获取变量的值,对于post方式,服务器端用Request.Form获取提交的数据。
...discuz有个很不错的在线分记系统: http://keyword.discuz.com/related_kw.html?title=$qc_rows&ics=utf-8&ocs=utf-8, 利用它可以为文章提取关键字和标签.
直接看PHP代码吧:
function cutstr($str,$cutleng){//*截取一定长度的字符串,确保截取后字符串不出乱码
$str = $str; //要截取的字符串
$cutleng = $cutleng; //要截取的长度
$strleng = strlen($str); //字符串长度
if($cutleng>$strleng)return $str;//字符串长度小于规定字数时,返回字符串本身
...
具体方法是:
IIS运行php时No input file specified.等问题的解决
php, by admin.
晚上帮 朋友看看IIS问题,顺便记录下。
网站目录是E:\mysite\www.**.com,是discuz程序,提示:
Warning: require_once(./include/common.inc.php) [function.require-once]: failed to open stream: No such file or directory in E:\mysite\www.**.com\index.php on line 12
...