2010年03月23日 下午 57:02 | 作者:hemon
$_SERVER[’PHP_SELF’]
- http://www.yoursite.com/example/ — – — /example/index.php
- http://www.yoursite.com/example/index.php — – — /example/index.php
- http://www.yoursite.com/example/index.php?a=test — – — /example/index.php
- http://www.yoursite.com/example/index.php/dir/test — — – /dir/test
$_SERVER['REQUEST_URI']
- http://www.yoursite.com/example/ — – — /
- http://www.yoursite.com/example/index.php — – — /example/index.php
- http://www.yoursite.com/example/index.php?a=test — – — /example/index.php?a=test
- http://www.yoursite.com/example/index.php/dir/test — — – /example/index.php/dir/test
$_SERVER[’SCRIPT_NAME’]
- http://www.yoursite.com/example/ — – — /example/index.php
- http://www.yoursite.com/example/index.php — – — /example/index.php
- http://www.yoursite.com/example/index.php?a=test — – — /example/index.php
- http://www.yoursite.com/example/index.php/dir/test — — – /example/index.php
分类:未分类 | 评论(1)
2010年03月15日 下午 05:03 | 作者:hemon
30分钟前发的上一篇文章,就能在google搜索到了!
– [ Translate this page ]
hemono · ed – sensible-editor,又是个鬼东西! 2010年03月15日下午26:56 | 作者:hemon. 在某ubuntu 9.10服务器执行crontab -e. [root@localhost ~]# crontab -e
…
www.hemono.com/ – Cached
分类:未分类 | 没有评论
2010年03月15日 下午 26:56 | 作者:hemon
在某ubuntu 9.10服务器执行crontab -e
[root@localhost ~]# crontab -e
no crontab for root – using an empty one
21
_
然后就是”_”一闪一闪……还以为是crontab坏了,原来是进入了ed编辑器(和vi一样的命令行编辑器):
http://linux.die.net/man/1/ed
http://en.wikipedia.org/wiki/Ed_%28text_editor%29
[root@localhost ~]# export EDITOR=vi #更改默认编辑器为vi
[root@localhost ~]# crontab -e #现在正常了!
[root@localhost ~]#vim ~/.bashrc
export EDITOR=vi // 加入此行
分类:未分类 | 没有评论
2010年03月10日 下午 44:35 | 作者:hemon
上周3拿到电脑城做了显卡GBA,然后就开不了机,一直放在电脑城了,让老板修,呵呵,老板也没去动他,疑难杂症……
今天拿回家自己修,原来是主板和无线网卡有特殊感情:
1.不插无线网卡,就见不到启动界面
2.插入无线网卡,就报1802
OK,我先插入无线网卡,进入启动界面,然后迅速拔掉无线网卡(避免报1802),就能进系统了,安装DOS工具(系统盘是NTFS格式,不然可以在Windwos下进行),运行jump1802.com,重新插入无线网卡,重启!
因为这个鬼毛病,逃掉了做GBA的120块钱:)
多亏某天看了某大学的《电工学》PPT,明白了电压和负载的关系,才让我敏锐的感觉到了问题之所在:主板不能启动,是电压不足;插入无线网卡,增加负载,电压升高,可以排除是显卡问题。
分类:未分类 | 没有评论
2010年03月10日 下午 39:52 | 作者:hemon
windows默认同步误差只有15分钟,你的日期与真实日期误差超过15分钟,当然会同步失败。
解决方法:
一 手动更改日期到误差范围内,然后在同步时间。
二 修改注册表的日期误差为最大,然后在同步时间。
将以下内容保存为ntp.reg并执行导入注册表
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time\Config]
“MaxNegPhaseCorrection”=dword:ffffffff
“MaxPosPhaseCorrection”=dword:ffffffff
“AnnounceFlags”=dword:00000005
分类:未分类 | 没有评论