Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3232612
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T17:10:53+00:00 2026-05-17T17:10:53+00:00

I have a server which consists of several Zend Framework application. I want to

  • 0

I have a server which consists of several Zend Framework application.

I want to know if it is a good idea to upload Zend Library on the server and share it among all the applications instead of uploading it per application.

Does it influence speed if for example multiple applications request a library simultaneously or not.

What is its Pros and Cons?

Thx in advance.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T17:10:53+00:00Added an answer on May 17, 2026 at 5:10 pm

    As others have pointed out, there are pros and cons. The big con is that every time you’re going to upgrade your library code, you need to test every application, not just the one that needs the upgrade right now.

    The big pro is that if you’re using an opcode cache like APC (and you should be), you’re wasting a fair bit of memory loading identical chunks of library code. Depending on the size of your opcode cache, and how much of the library code actually ever gets run, this could become an issue at some point. If the size of your opcode cache is not big enough to hold everything, you’ll end up with a performance hit of some magnitude.

    A middle-ground solution is to keep all your libraries some place on the server where they can be shared. Build your apps to use some configuration value for loading.

    APP1: config.php

    <?PHP
    define('ZEND_LIB_PATH','/path/to/ZendFramework-1.9/library');
    set_include_path(ZEND_LIB_PATH . PATH_SEPERATOR . get_include_path());
    

    APP2: config.php

    define('ZEND_LIB_PATH','/path/to/ZendFramework-1.10.1/library');
    set_include_path(ZEND_LIB_PATH . PATH_SEPERATOR . get_include_path());
    

    That way if two apps happen to be using the same version, they can share opcode caches for that version, but you’re not tied to it.

    DISCLAIMER: I haven’t actually done this, so you probably want to test the theory before putting it into practice.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a server application which I want to protect from being stopped by
We have a database server application which consists of the followings components: 1) A
Hi I have a server which has several virtual hosts set up on it.
I have a web server which I do not know what the time zone
I have a C# application which consists of 3 forms: 1: Battleship Game GUI
I have a Web Application deployed to a local Glassfish server which I would
Suppose we have 3 entities: Library, Section & Book. A Library consists of several
I have an application in which I am posting data to my server API
I have a Java application that consists of a client and a server. The
I have a project which consists of GWT client end and a Tomcat server

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.