CheeseConQueso
CheeseConQueso

Reputation: 6041

How can I find where Zend is installed on my server?

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.

Upvotes: 2

Views: 2554

Answers (2)

vascowhite
vascowhite

Reputation: 18440

The Zend Engine is the interpreter for PHP and has nothing to do with the Zend Framework.

The Zend Framework is probably not installed on your server unless you have installed it yourself. See the quick start for more information and instructions on where and how to install Zend Framework.

Upvotes: 4

zerkms
zerkms

Reputation: 254926

  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

Upvotes: 5

Related Questions