donglian5309 2009-06-02 01:34
浏览 26
已采纳

XSLT Cache问题

I'm trying to install this PHP module from NYTimes (http://code.nytimes.com/projects/xslcache)

I unfortunately am falling at the last hurdle. I've installed it, added to my php.ini, but I am getting this error when running in my PHP code.

Fatal error: Class 'xsltCache' not found in...

My php code is as described by the NYTimes website

$xslt = new xsltCache;

Any ideas why that may happen?

My install script for the module is

cd ~
mkdir setups
cd setups
wget http://code.nytimes.com/downloads/xslcache.tar.gz
tar -xvf xslcache.tar.gz
cd xslcache
phpize && ./configure --with-xslcache=/usr/lib/libxslt.so --with-xsl-exsl-dir=/usr/lib/libexslt.so
make
make install

And it seems to work completely fine, no errors, php.ini is fine. Something I have notified, it doesn't show up in phpinfo().

  • 写回答

5条回答 默认 最新

  • doumeng2637 2009-06-12 18:46
    关注

    Check that you added the extension to the correct php.ini file.

    If you have a PHP directory you may have one in there, but the one you want to add the extension to is likely in your server directory.

    I.E. On my PC, the correct php.ini to modify is apache\bin\php.ini

    P.S. Don't forget to restart your server.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(4条)

报告相同问题?

悬赏问题

  • ¥50 如何用脚本实现输入法的热键设置
  • ¥20 我想使用一些网络协议或者部分协议也行,主要想实现类似于traceroute的一定步长内的路由拓扑功能
  • ¥30 深度学习,前后端连接
  • ¥15 孟德尔随机化结果不一致
  • ¥15 apm2.8飞控罗盘bad health,加速度计校准失败
  • ¥15 求解O-S方程的特征值问题给出边界层布拉休斯平行流的中性曲线
  • ¥15 谁有desed数据集呀
  • ¥20 手写数字识别运行c仿真时,程序报错错误代码sim211-100
  • ¥15 关于#hadoop#的问题
  • ¥15 (标签-Python|关键词-socket)