欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

使用php+xslt在windows平臺(tái)上

 更新時(shí)間:2006年10月09日 00:00:00   作者:  
在windows平臺(tái)上使用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目錄下的下列四個(gè)文件到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
============================
<?xml version="1.0"?>

<articles>
<article>
This is the first article.
</article>
</articles>

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

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
  <xsl:template match="/">
<html>
<body>
<xsl:value-of select="articles/article"/>
</body>
</html>
     </xsl:template>
</xsl:stylesheet>

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


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

相關(guān)文章

最新評論