Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Zend Framework as a Shared Library

Discussion in 'General Discussion' started by hm2k, May 22, 2009.

  1. hm2k

    hm2k Well-Known Member

    Jul 19, 2005
    Likes Received:
    Trophy Points:
    Recently I see a lot of users using the same Zend Framework library.

    Zend Framework is NOT to be confused with Zend Optimiser, these aren't the same thing.

    Zend Framework is available for download here:
    Zend Framework: Downloads

    To use Zend Framework in your PHP scripts you must add it to PHP's include path.

    There are a number of ways to do this...
    Either in php.ini; as a httpd directive in htaccess; or actually using PHP itself (set_include_path).

    I figured placing it in "/usr/share/" (same dir pear uses) and adding that path to the "php.ini" for the includes will be enough.

    Has anyone else had much experience with Zend Framework as a shared library?
  2. cookiesunshinex

    cookiesunshinex Well-Known Member

    Jun 10, 2005
    Likes Received:
    Trophy Points:
    I'm interested in the answer to this question as well.

    I've just started learning PHP and interested in using Zend Framework.

    From reading various bits of information, it seems that the easiest way to utilize the Zend Framework is to install the Library folder which contains the Zend Framework files into ~/useraccount/Library for any accounts on the server that want to use Zend Framework.

    However, what if I want to provide the Framework for all of the accounts on my server?

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice