简体   繁体   English

如何在php xampp中启用或安装XLST

[英]How to enable or install XLST in php xampp

I have a default installation of xampp which has php 5.3. 我有xampp的默认安装,它有php 5.3。 I came across an issue while using symfony framework CLI to create database tables. 我在使用symfony框架CLI创建数据库表时遇到了一个问题。 I am using Windows XP. 我使用的是Windows XP。 Here is the command I run: 这是我运行的命令:

 symfony propel:build-sql 
 Output: Could not perform XLST transformation.Make    sure php has been compiled/configured to support XLST. 

Please guide me through the installation of XLST in windows xp. 请指导我在windows xp中安装XLST。

You probably need to enable the XSL extension . 您可能需要启用XSL扩展

Look for something like the following in your php.ini file php.ini文件中查找以下内容

;extension=php_xsl.dll

and un-comment it by removing the semi-colon. 并通过删除分号取消注释。 You may need to check the location of the extension and that it complies with your extension_dir directive . 您可能需要检查扩展的位置,并且它符合您的extension_dir指令

In addition to Phil's answer... 除了菲尔的回答......

I found that the easiest way to find and enable the XSL extension was through the XAMPP Control Panel UI. 我发现找到并启用XSL extension的最简单方法是通过XAMPP控制面板 UI。

  1. Open the XAMPP Control Panel 打开XAMPP控制面板
  2. In "Actions" click on "Config" next to "Apache" module and click on PHP (php.ini) . 在“Actions”中单击“Apache”模块旁边的“Config”,然后单击PHP(php.ini) XAMPP控制面板PHP(php.ini)
  3. That should open the PHP.ini file in text editor. 那应该在文本编辑器中打开PHP.ini文件。 Search for " ;extension=php_xsl.dll " and remove " ; " from the line. 搜索“ ;extension=php_xsl.dll ”并从行中删除“ ; ”。
  4. Save the file and close. 保存文件并关闭。
  5. Restart Apache. 重启Apache。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM