Home >Backend Development >PHP Tutorial >Using php+xslt on windows platform_PHP tutorial

Using php+xslt on windows platform_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:07:05970browse

Use php+xslt

1 on the windows platform. Go to http://www.php.net to download php 4.0.6

2. Unzip php-4.0.6-Win32.zip to c:php under

3. Configure php

3 on the web server. Copy the following four files in the dlls directory to

expat.dll
sablot.dll
xmlparser.dll
xmltok.dll

4. Modify php.ini

Modify extension_dir to point to the correct extension directory

extension_dir = c:/php/extensions

Then find the following line

;extension =php_sablot.dll

modified to:

extension=php_sablot.dll

If php is configured in cgi mode, you do not need to restart the web server, otherwise you may need to restart the web server

5. Let’s test it with an example

test.xml
============================
< ;?xml version="1.0"?>



This is the first article.

< /articles>

test.xsl
============================







< ;/body>




test.php
====== =====================
$parser=xslt_create();
xslt_run($parser,'test.xsl ','test.xml');
print xslt_fetch_result($parser);
xslt_free($parser);
?>


Finally, this parser does not support GB2312 . :(

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/315205.htmlTechArticleUsing php+xslt 1 on windows platform. Go to http://www.php.net to download php 4.0.6 2. Unzip php-4.0.6-Win32.zip to c:php 3. Configure php 3 on the web server. Copy the following in the dlls directory...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn