配置后php文件将先作为php解析
之后再作为ssi解析
<!--#include file="abc.html" -->
# 文档目录 #
DocumentRoot D:/www
<Directory "D:/www">
Options Indexes FollowSymLinks Includes
# AddType text/html .shtml .php #加上此行无法解析php
AddOutputFilter Includes .php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
之后再作为ssi解析
<!--#include file="abc.html" -->
# 文档目录 #
DocumentRoot D:/www
<Directory "D:/www">
Options Indexes FollowSymLinks Includes
# AddType text/html .shtml .php #加上此行无法解析php
AddOutputFilter Includes .php
AllowOverride All
Order allow,deny
Allow from all
</Directory>
以下内容均来自网络。
Zend Studio 7.1.1 官方下载地址:
http://downloads.zend.com/studio-eclipse/7.1.1/ZendStudio-7.1.1.exe
汉化包下载(汉化率超过90%):
http://www.lisijie.org/download/zs7_cn.rar
汉化包使用方法:
解压后将里面的两个文件夹features和plugins替换你的zend studio安装目录下的对应目录,重启zend studio即可。
附Zend Studio 7.X注册码(仅供学习,请向Zend公司购买授权):
username:lisijie_org
License Key:3F4F495657BF3F4A95657BF3
因为在同步时需要使用代理,可能因为代理而导致在第一次同步CentOS镜像时,或每当CentOS发布新的版本时,同步的进程总是继线退出。为了解决这个问题,写了如下一个脚本:
[user@host ~]$ cat mon_centos.sh
#!/bin/bash
export RSYNC_PROXY="xxx.xxx.xxx.xxx:3128"
while true
do
counter=`ps ax | grep rsync |grep centos |grep -v grep | wc -l`
pro_id=`ps ax | grep rsync |grep centos |grep -v grep | awk '{print $1}'`
case $counter in
0)
echo "counter=$counter"
/usr/bin/rsync -rlptvHz --partial --exclude ".~tmp~/" --exclude ".*" rsync://mirror.chpc.utah.edu/pub/centos/ /disk4/mirror/centos
;;
2)
echo "counter=$counter"
sleep 60
;;
*)
echo "counter=$counter"
sleep 60
;;
esac
sleep 60
done
#!/bin/bash
export RSYNC_PROXY="xxx.xxx.xxx.xxx:3128"
while true
do
counter=`ps ax | grep rsync |grep centos |grep -v grep | wc -l`
pro_id=`ps ax | grep rsync |grep centos |grep -v grep | awk '{print $1}'`
case $counter in
0)
echo "counter=$counter"
/usr/bin/rsync -rlptvHz --partial --exclude ".~tmp~/" --exclude ".*" rsync://mirror.chpc.utah.edu/pub/centos/ /disk4/mirror/centos
;;
2)
echo "counter=$counter"
sleep 60
;;
*)
echo "counter=$counter"
sleep 60
;;
esac
sleep 60
done
这个脚本或反而获取当前运行rsync进程的数量,当同步进程数量为0时,重新启动同步进程,否则sleep 60秒之后重新检测。
wget -c -m -np -p -q -b http://mirrors.163.com/centos/5.4/
-c 是继续传送, -m 是镜像,-np 只下载目标站点指定目录及其子目录的内容 -p 是下载媒体文件,比如图片, -q 是安静模式, -b 是后台运行
绕开 robots.txt 办法:
在 $HOME/.wgetrc 中加入
robots = off
&&左边的命令(命令1)返回真(即返回0,成功被执行)后,&&右边的命令(命令2)才能够被执行;换句话说,“如果这个命令执行成功&&那么执行这个命令”。
||则与&&相反。如果||左边的命令(命令1)未执行成功,那么就执行||右边的命令(命令2);或者换句话说,“如果这个命令执行失败了||那么就执行这个命令。
为了在当前shell中执行一组命令,可以用命令分隔符隔开每一个命令,并把所有的命令用圆括号()括起来。
如果使用{}来代替(),那么相应的命令将在子shell而不是当前shell中作为一个整体被执行,只有在{}中所有命令的输出作为一个整体被重定向时,其中的命令才被放到子shell中执行,否则在当前shell执行。
||则与&&相反。如果||左边的命令(命令1)未执行成功,那么就执行||右边的命令(命令2);或者换句话说,“如果这个命令执行失败了||那么就执行这个命令。
为了在当前shell中执行一组命令,可以用命令分隔符隔开每一个命令,并把所有的命令用圆括号()括起来。
如果使用{}来代替(),那么相应的命令将在子shell而不是当前shell中作为一个整体被执行,只有在{}中所有命令的输出作为一个整体被重定向时,其中的命令才被放到子shell中执行,否则在当前shell执行。





2010/03/10 15:48 | 
