Archive for the ‘AMP’ Category

cronolog

08.22.2010 by sunliguo - 0 Comment
Posted in AMP

用cronolog格式化apache的日志文件。 Read the rest of this entry

php setcookie

08.09.2010 by sunliguo - 0 Comment
Posted in AMP

php在设置cookie的时候,老是提示错误:不能修改头信息。 Read the rest of this entry

php 获取跳转过来的url

08.09.2010 by sunliguo - 0 Comment
Posted in AMP

PHP在经常要用到上一页的地址,如在设置要登陆跳转的页面上。 Read the rest of this entry

mysql 字符编码

07.08.2009 by sunliguo - 0 Comment
Posted in AMP

现在mysql又遇到乱码的问题了! Read the rest of this entry

htmlentities函数导致中文乱码

07.03.2009 by sunliguo - 0 Comment
Posted in AMP

再用 PHP Navigator 的时候,发现不能正常浏览中文字符。 Read the rest of this entry

Apache Order Directive

05.16.2009 by sunliguo - 0 Comment
Posted in AMP, Linux

这个指令并没有像我想象的那么简单。而且也不像iptalbes那样去匹配。
order 的语法:
Order ordering
注意的几点:
1:最后匹配原则。
2:allow 和 deny 两个指令的先后顺序无关。所有的allow行作为一个组处理,deny也是这样。
3:不区分大小写。 Read the rest of this entry

mysql usage

05.11.2009 by sunliguo - 0 Comment
Posted in AMP

[注]找个mysql的教程,有忘记的地方就来这里查查,或者添加上一些东西!
测试MySQL
MySQL里面有一个简单的数据库例子test ,而且它的内部数据库一直保持对权限和帐户的监视,因而 先运行mysql看看是否可以工作。
首先启动MySQL:
# /etc/rc.d/init.d/mysql start
service mysqld start
如果一切正常,你将看到以下的信息出现:
Starting mysqld daemon with databases from /var/lib/mysql
接着,用show databases命令可以将安装的数据库列出来:
mysql> show databases;
你就可以看到:
+———-+
| Database |
+———-+
| mysql |
| test |
+———-+
2 rows in set (0.00 sec) Read the rest of this entry

自动备份blog到自己的邮箱

05.01.2009 by sunliguo - 0 Comment
Posted in AMP, Linux, 建站日志

基本思路: Read the rest of this entry

Apache 中的虚拟主机

02.13.2009 by sunliguo - 0 Comment
Posted in AMP, Linux, 建站日志

所谓虚拟主机,我的理解就在一台服务器上来提供多个同样的服务。网上有很多提供虚拟主机的,可以在上面安装操作系统。这个我没有研究过。这里说的虚拟主机是Apache中提供的几个网站。 Read the rest of this entry