The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Zend Framework as a Shared Library

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

  1. hm2k

    hm2k Well-Known Member

    Joined:
    Jul 19, 2005
    Messages:
    93
    Likes Received:
    0
    Trophy Points:
    6
    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

    Joined:
    Jun 10, 2005
    Messages:
    77
    Likes Received:
    0
    Trophy Points:
    6
    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?
     
Loading...

Share This Page