PHP combined with XML, XSLT, MySQL, installation _php tutorial

Source: Internet
Author: User
Tags pear xslt
Often see users ask some questions about PHP (as the mainstream development language now) and XML (standardization is getting closer), database combined with the use of posts, also often see some beginners
Put PHP (as the current mainstream development language) code and HTML code mixed together, and then in the wrong time to find the error, anxious to round, I will give big
Home about how to use XML (standardization is getting closer) technology to the HTML code and PHP (as the current mainstream development language) program separation, of course, there are many separate technologies, such as Pear
The IT template.
In general, individuals think that the use of XML (standardization is getting closer) technology is the most convenient, no nonsense, we talk about,
Tell me about the installation under the Win2000.

Using PHP (as the current mainstream development language) in XML (standardization is getting closer) and XSLT to use some DLL libraries,
Extension=php (as the current mainstream development language) _domxml (standardization getting closer). dll//Operation XML (standardization is getting closer) Library of functions
Extension=php (as the current mainstream development language) _iconv.dll//transcoding, such as the transfer of GB2312 into UTF-8
Extension=php (as the current mainstream development language) _xslt.dll//XSLT's Library of functions

Using the above three libraries, you will be PHP (as the current mainstream development language) installation directory of the DLLs directory to join the path, or you will not find
Of these class libraries

In the following course, we will use PHP (as the current mainstream development language) in the Pear class library, mainly using DB Class library, Sql2xml (standardization is getting closer) class library, you can
PEAR.php (as the current mainstream development language). NET Download the latest version
After downloading the above two class libraries, it is best to be in PHP (as the current mainstream development language). INI set up a bit
include_path = ".; D:php (as the current mainstream development language) pear "

D:php (as the current mainstream development language) pear is the installation path of my pear

After setting up, restart the machine, or because the path can not be found to cause Apache (Unix platform The most popular Web server platform) started unhealthy, not normal use


It is not easy to use the XML (which is getting closer to normalization) and the XSLT settings in PHP (the current mainstream development language):
Users who use Linux can go to
http://www.gingerall.com/Download the source code about XSLT
http://www.gnu.org/software/libiconv/Download the source code about ICONV

The combination of two PHP (which is now the mainstream development language) and XML (standardization is getting closer), XSLT, MySQL (and the best combination of PHP collocation), the primary article
What I'm going to talk about is a simple process of extracting data from a database, generating XML (which is getting closer to standardization), and using XSLT to convert to HTML.
This process only speaks of the process of using this technology and does not involve paging and other technologies

The example I use the following database tables and data
Table Name: Enterprise User Information Form, English name: yhxx
Table structure:
#
# The structure of the data table ' Yhxx '
#

CREATE TABLE Yhxx (
NSRNM varchar () not NULL default,
QYMC varchar (+) not NULL default,
QYDH varchar () not NULL default,
Prima (the most complete virtual host management System) RY KEY (NSRNM)
) Type=myisam comment= user Information table;

#
# Data Sheet content ' yhxx '
#

INSERT into Yhxx VALUES (310109040111985, Joe Home Diet Development Co., Ltd., 8621-63346626);
INSERT into Yhxx VALUES (310104040221736, Shanghai Jialing Trading Co., Ltd., 74292546);
INSERT into Yhxx VALUES (310108040331576, jadeite Art Company, 54861465);


Next I started writing the data Extraction program and the page that displayed the data.

http://www.bkjia.com/PHPjc/508715.html www.bkjia.com true http://www.bkjia.com/PHPjc/508715.html techarticle often see a user ask some about PHP (as the mainstream development language now) and XML (standardization is getting closer), database combined with the use of posts, also often see some beginners to ...

  • 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.