<script>ec(2);</script>
因为php4早就end了,所以是有必要切换到php5的了,所以有时调试需要整合一下了
做了一个脚本,让他们批处理一下就能自动切换了,方便的说
环境:
window XP SP2 +apache2.2.6 + PHP4.4.7 +PHP5.2.5
PHP4目录:E:webphp4
PHP5目录:E:webphp5
APACHE目录:E:webApache2.2
1.需要两个apache的httpd.conf文件,,因为apache2.2.6对php4.47支持不好,所以要另外加插件了.(参考:http://pakapaka.jp/softwareinfo/146.html)
php4的为: httpd_php4.conf
PHP5为:httpd_php5.conf
2. 准备两个批处理文件就可以了
变成php4:
copy php.ini c:windows
copy php4ts.dll c:windows
copy php4ts.lib c:windows
copy E:webApache2.2confhttpd_php4.conf E:webApache2.2confhttpd.conf
net stop apache2.2
net start apache2.2
变成php5
del c:windowsphp.ini
del c:windowsphp4ts.dll
del c:windowsphp4ts.lib
copy E:webApache2.2confhttpd_php5.conf E:webApache2.2confhttpd.conf
net stop apache2.2
net start apache2.2
当然以上目录都是放在php4根目录下的,你只要根据目录修改就可以了
Statement:The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn