dongshijiao6890 2012-09-04 22:36 采纳率: 0%
浏览 76
已采纳

如何在服务器上找到Zend的安装位置?

I'm trying to use Zend's "Zend_Service_Amazon" class in my php script, but I'm not sure where it is installed. I'm assuming I need to include the path to Zend before trying to call methods based on this error I get:

Fatal error: Class 'Zend_Service_Amazon' not found in /public_html/path/zend.php on line 3

I know Zend is installed based on the php -v output of:

Zend Engine v2.2.0, Copyright (c) 1998-2010 Zend Technologies
    with the ionCube PHP Loader v4.2.2, Copyright (c) 2002-2012, by ionCube Ltd., and
    with Zend Optimizer v3.3.9, Copyright (c) 1998-2009, by Zend Technologies

So how do I find out where it resides and how to include it in my php script?

If it makes a difference, I'm using cPanel.

  • 写回答

2条回答 默认 最新

  • dongyan3018 2012-09-04 22:45
    关注
    1. Based on the php -v output we can say that Zend Optimizer is installed. Nothing about Zend Framework there
    2. Zend Framework is a set of php scripts, nothing else. You don't need to have it installed on the server
    3. There is no way rather than finding through all the filesystem if ZF is installed somewhere
    4. As long as it is a good idea to rely on a particular software version - just distribute your script with zend framework
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?

悬赏问题

  • ¥15 ansys fluent计算闪退
  • ¥15 有关wireshark抓包的问题
  • ¥15 需要写计算过程,不要写代码,求解答,数据都在图上
  • ¥15 向数据表用newid方式插入GUID问题
  • ¥15 multisim电路设计
  • ¥20 用keil,写代码解决两个问题,用库函数
  • ¥50 ID中开关量采样信号通道、以及程序流程的设计
  • ¥15 U-Mamba/nnunetv2固定随机数种子
  • ¥15 vba使用jmail发送邮件正文里面怎么加图片
  • ¥15 vb6.0如何向数据库中添加自动生成的字段数据。