PHP6 download: http://snaps.php.net/
PHP6 installation manual:
Step 1: Install apache to c:/apache. After installation, you can enter http://localhost in the browser to see if it runs successfully. ! If there are running errors, more than 80% of them may be due to port problems. Please modify the two configurations of Listen and ServerName in c:/apache/conf/httpd.conf to other unoccupied ports!
Step 2: Unpack php6 to c:/php, and then copy c:/php/php.ini-recommended to c:/php/php.ini, or rename it directly! Then please configure php.ini correctly, especially pay attention to the extension_dir parameter and change it to "c:/php/ext/".
Step 3: Configure c:/apache/conf/httpd.conf. Add the following content at the end of the file:
LoadFile "c:/php/libmysql.dll"
LoadModule php5_module "c:/php/php6apache2_2.dll"
AddType application/x-httpd-php .php
PHPIniDir "C:/php"
It should be noted that the LoadModule parameter should be php5_module instead of php6_module.
The purpose of LoadFile "c:/php/libmysql.dll" is to allow PHP to support the php_mysql.dll extension
and finally save it. Then restart APACHE to run PHP!
Introduction to PHP6:
At the PHP Developers Conference held in Paris last year, news of PHP6 development began to spread.
PHP6, which will be discussed at the PHP conference, will have significant changes, but this is only in the draft stage.
It does not mean that the probability of all meetings will include all changes in the record with the release of PHP6. In other words, there will still be changes before PHP6 is released, but what is certain is that the several changes listed below will Will be released with PHP6 (of course not 100% happy,)
Come and take a look at these new features
1. Support Unicode
Supporting Unicode is inevitable. Although Unicode takes up more space, the convenience brought by Unicode far outweighs the shortcomings of taking up space. Especially in today's internationalization, hardware devices are becoming more and more powerful, and network speeds are also increasing significantly. Improvement, such a small shortcoming can be ignored. Another point, PHP can also set whether to enable Unicode support in the .ini file, the decision is up to you.
This is a good idea. Turning off Unicode support will not significantly improve PHP's performance. The main impact is on functions that need to quote strings.
2. Register Globals will be removed. This is an important decision. Many new PHP developers will find Register Globals very convenient, but they ignore that Register Globals will bring program security risks. Most of them will This function is turned off on the host. I have the impression that starting from PHP 4.3. It is completely unusable and there is no other way but to rewrite it. I believe that in the current PHP world, there should be very few programs produced in the PHP3 era.
3.Magic Quotes will disappear
Magic Quotes mainly automatically escapes characters that need to be escaped. The removal of this feature is in line with the aspirations of most PHP developers.
4.Safe Mode Cancel To be honest, I don’t know what’s wrong with this mode. Just cancel it. It won’t be used anyway.
5. ‘var’ is aliased as ‘public’
The var declaration in the class becomes a public alias. I believe this is a decision made to be compatible with PHP5.
PHP6 can now also be called an OO language.
6. Returning by reference will cause an error. Now returning by reference, the compiler will report an error, such as $a =& new b(), function &c(),
OO language uses references by default, so there is no need to use &.
7.zend.ze1 compatbility mode will be removed
The Zend.ze1 compatibility mode will be removed. PHP5 is compatible with the old PHP4, so you can choose whether to enable the compatibility mode in the .ini. The reason is that PHP5 uses the second-generation parsing engine, but the compatibility mode is not It is 100% able to parse PHP4 syntax, so the product of the old era will be removed.
8.Freetype 1 and GD 1 support will no longer be seen. These two are Libs that have been around for a long time, so they are no longer supported. GD1 has long been replaced by the current GD2.
9.dl() is moved to SAPI
dl() mainly allows designers to load extension Libs, and is now moved to SAPI.
10.Register Long Array removal is turned off by default from PHP5, and is officially removed in PHP6.
11. Some Extension changes such as XMLReader and XMLWriter will no longer appear as Extensions. They will be moved into the core of PHP and are enabled by default. The ereg extension will be placed in PECL, which means it will be moved out. PHP core, this is also to make way for the new regular expression extension,
In addition, the Fileinfo extension will also be imported into the core of PHP.
12. APC will be imported into the core. This is a feature that improves PHP performance. Now it will be put into the PHP core, and you can choose whether to enable APC.
13. Say goodbye to the ASP-style start tag. It was originally intended to please ASP developers and switched to using PHP, this approach is no longer needed nowadays.
Finally, don’t expect that the performance of PHP6 can comprehensively exceed that of PHP5. It is possible that the execution efficiency of PHP6 will be higher than that of PHP5.
PHP5 will come slowly, but it can be expected that the PHP development team will work hard to improve PHP5 and surpass PHP5.
So, friends who are interested in PHP6 can now download it from the PHP official website and try whether these functions have really been reflected in PHP6. The download address is http://snaps.php.net/