Heim  >  Artikel  >  Backend-Entwicklung  >  使用php+xslt在windows平台上_PHP教程

使用php+xslt在windows平台上_PHP教程

WBOY
WBOYOriginal
2016-07-21 16:07:05918Durchsuche

在windows平台上使用php+xslt

1。到http://www.php.net下载php 4.0.6

2。将php-4.0.6-Win32.zip解压到c:\php下

3。在web server上配置好php

3。拷贝dlls目录下的下列四个文件到windows\system(32)下

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

4。修改php.ini

修改extension_dir指向正确的extension目录

extension_dir = c:/php/extensions

然后找到下面这行

;extension=php_sablot.dll

修改为:

extension=php_sablot.dll

如果php配置的是cgi模式,则不需要重启web server,否则可能需要重启web server

5。我们用例子来测试一下

test.xml
============================




This is the first article.



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



  


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


最后,该parser不支持GB2312。:(

www.bkjia.comtruehttp://www.bkjia.com/PHPjc/315205.htmlTechArticle在windows平台上使用php+xslt 1。到http://www.php.net下载php 4.0.6 2。将php-4.0.6-Win32.zip解压到c:\php下 3。在web server上配置好php 3。拷贝dlls目录下的下列...
Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn