存档

文章标签 ‘php’

关于上次提到 Modoer BUG的解决办法!

2009年4月20日 网络日志 没有评论

没发布,也一直没有理会

刚去串了一下代码

解决办法如下

include template.func.php
查找
    die(“Current template file ‘{$tplfile}’ not found or have no access!”);

修改为
    die(“Current template file ‘{$file}’ not found or have no access!”);

作者一个小小的粗心~

php中的表达式与运算符

2009年4月19日 网络日志 没有评论

+ 加法 $a+$b
- 减法 $a-$b
* 乘法 $a*$b
/ 除法 $a/$b
% 取余数 $a%$b
++ 递增 $a++或++$a
递减 $a 或 $a
== 等于 $a==10
=== 决等于 $a===10
!= 不等于 $a!=10
< 小于 $a<9
> 大于 $a>8
<= 小于等于 $a<=5
>= 大于等于 $a>=1
= 相等赋值运算符 $a=0
+= 加法指定运算符 $a+=5
-= 减法指定运算符 $a-=5
*= 乘法指定运算符 $a*=5
/= 除法指定运算符 $a*=5
%= 余数指定运算符 $a%=5
.= 字符串指定运算符 $a.=”hello”
& 与 $a&$b
| 或 $a|$b
^ xor $a^$b
~ 非 ~$a(取1的补码)
<< 向左移位 $a<<$b
>> 向右移位 $a>>$b
and或&& 与 $a and $b或$a&&$b
or或|| 或 $a or $b或$a||$b
xor xor $a xor $b
! 非 !$a

标记

2009年4月15日 工作生活 没有评论

无意中发现的

/shop/shop_map.php/shop.php?shopid=1

至于怎么用,由于危害比较大我就不发出来了,明眼人一眼就看出来了

简直是无敌了.

用到的朋友别忘记谢谢我啊. 嘎嘎~

关于.htaccess文件使用详解

2009年4月7日 网络日志 没有评论

以下为HDHOO使用的htaccess,我已经加了标注·

# RewriteEngine模式开启

RewriteEngine on

# 定义默认首页

DirectoryIndex index.php default.php index.htm index.html default.htm default.html index.shtml default.shtml

# 修改程序上传文件大小限制

Options All -Indexes
php_value upload_max_filesize 50M

# 域名重定向

# news

RewriteCond %{HTTP_HOST} ^(news.)?hdhoo.com$
RewriteCond %{REQUEST_URI} !^/news/
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ /news/$1
RewriteCond %{HTTP_HOST} ^(news.)?hdhoo.com$
RewriteRule ^(/)?$ /news/index.html [L]

# 自定义错误页面

ErrorDocument 401 /404.html
ErrorDocument 403 /404.html
ErrorDocument 404 /404.html
ErrorDocument 500 /404.html