Php, XML, XSLT, and Mysql installation-PHP source code

Source: Internet
Author: User
Tags pear xslt
Ec (2); users often see some posts about the combination of php, XML, and database, and some beginners often write php code and HTML code together, then, when an error occurs, I cannot find the error. I am so anxious to explain how to use XML technology to separate the HTML code from the PHP program. Of course, there are many separation technologies, such as IT templates in PEAR. in general, I personally think that using XML technology is the most convenient. I don't talk much about it. script ec (2); script

I often see some posts about the combination of php, XML, and database, and some beginners.
The php code and HTML code are mixed together, and the error cannot be found in the case of an error. The error is so anxious that I will give it a big one.
Let's talk about how to use XML technology to separate HTML code from PHP programs. Of course, there are many separation technologies, such as PEAR
IT template.
In general, I personally think that using XML technology is the most convenient. If you don't talk much about it, let's get down to the truth,
Let's talk about the installation in win2000.
Some dll libraries are required to use xml and xslt in php,
Extension = php_domxml.dll // function library for operating XML
Extension = php_iconv.dll // For transcoding, such as converting GB2312 to UTF-8
Extension = php_xslt.dll // function library of XSLT

When using the above three libraries, you need to add the dlls directory under the php installation directory to the path, otherwise it will not be found
The

In the following course, we will use the PEAR class library in php, mainly using the DB class library and Sql2XML class library.
Download the latest pear.php.net version.
After downloading the above two class libraries, you 'd better set them in php. ini.
Include_path = ".; d: phppear"

D: phppear is the installation path of my pear.

After the configuration is complete, restart the machine. Otherwise, Apache cannot be started properly because the path cannot be found.


So far, we have to use the XML and XSLT settings in PHP. Is it very simple :)
Linux users can

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.