<%
str=request("sort")
if str="1asdf" then
response.write("错误信息")
response.end
end if
%>
C在debug模式下主要用assert(表达式)检查参数错误,release模式下需要依靠参数越界检查等方式判断错误和处理,例如:void function(int a, int b)
{
assert(a != 0)
if (!a)
{
printf("zero a\n")
return
}
}
<IfModule mod_rewrite.c>Options +FollowSymlinks
RewriteEngine On
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-f
RewriteRule ^(.*)$ index.php/$1 [QSA,PT,L]
</IfModule>
这里叫做伪路径,或者叫做美化路径,你用我的试试,就这几行代码
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)