7/21/2007

PHP6

今天上php.net看到这样一条消息

PHP 4 end of life announcement
[13-Jul-2007]
Today it is exactly three years ago since PHP 5 has been
released. In those three years it has seen many improvements over PHP 4. PHP 5
is fast, stable & production-ready and as PHP 6 is on the way, PHP 4 will be
discontinued.
The PHP development team hereby announces that support for PHP
4 will continue until the end of this year only. After 2007-12-31 there will be
no more releases of PHP 4.4. We will continue to make critical security fixes
available on a case-by-case basis until 2008-08-08. Please use the rest of this
year to make your application suitable to run on PHP 5.



The php4 is dead - Long live the php6
所以到网上找了一下php6的下载,安装方法.
PHP6下载:http://snaps.php.net/
php6安装:

第一步:将apache安装到c:/apache下,装完后可在浏览器中输入 http://localhost/查看是否成功运行了!如果运行错误,80%以上的可能是由于端口问题,请修改c:/apache/conf/httpd.conf中的Listen和ServerName这2个配置为其他未占用的端口!
第二步:将php6解包到c:/php下,然后将c:/php/php.ini-recommended 复制成 c:/php/php.ini
,或者直接改名也可!然后请正确配置php.ini,尤其要注意extension_dir参数,将其改为 "c:/php/ext/"。
第三步:配置c:/apache/conf/httpd.conf。在文件最后加上以下内容:

LoadFile
"c:/php/libmysql.dll"
LoadModule php5_module "c:/php/php6apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"

其中要注意的是LoadModule参数中应该是 php5_module 而不是 php6_module。
LoadFile
"c:/php/libmysql.dll" 的目的是为了让PHP支持php_mysql.dll扩展

最后保存,重起APACHE就可以运行PHP了!


总的安装方法和php5没有什么区别

php6介绍

  • php 6 becomes more clean environment;
  • no more register globals
  • no more safe mode
  • no more magic quotes
  • no more long arrays
  • no more string indexes
  • no more call-time-pass-by-references

没有评论: