Often see a user to ask some about PHP and XML, database combination of the use of posts, but also often see some beginners
Mix the PHP code with the HTML code, and then when the error can not find the error, the rush, I will give a big
Home about how to use XML technology to separate the HTML code from the PHP program, of course, there are many kinds of separation technology, such as Pear
's IT templates.
On the whole, personally think that using XML technology is the most convenient, not much nonsense, we have to talk about,
Tell me about the installation under the Win2000.
Use XML and XSLT in PHP to use some DLL libraries,
Extension=php_domxml.dll//Operation XML Library of functions
Extension=php_iconv.dll//transcoding, such as converting GB2312 to UTF-8
function Library of Extension=php_xslt.dll//XSLT
When using the three libraries above, you should add the DLLs directory under the PHP installation directory to the path, or you will not be able to find
Of these class libraries
In the following course, we will use the Pear Class Library in PHP, mainly with the DB Class Library, Sql2xml class library, you can
Pear.php.net Download the latest version
After downloading the above two class libraries, we'd better set up in php.ini
include_path = ".; D:phppear "
D:phppear is the installation path of my pear
After setting up, restart the machine, or because the path can not be found to cause the Apache boot is not normal to use
This is done by using the XML and XSLT settings in PHP, which is simple:
Users who use Linux can go to the