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 490763
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T01:56:32+00:00 2026-05-13T01:56:32+00:00

I am thinking of writing a PHP extension library that will use the memcached

  • 0

I am thinking of writing a PHP extension library that will use the memcached library. It is trivial to simply link my library to the memcache shlib.

However, I am not sure what will happen if my (extension library) user already uses memcache on his/her website. My questions are:

  1. Is it possible to have (possibly different versions) of memcache on the machine?
  2. Is it best to statically link or dynamically link to memcache when building the extension library? (to cater for version incompatibilities – assuming memcache is backward compatible, otherwise all bets are off)

The questions basically degenerate to how may one safeguard an extension library they have written if it has a dependence on a third party file which may already be being used on the website that the extension library is going to be used on?

The question may probably be slightly ill-posed, but I hope you understand the gist of what I am asking.

  • 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-13T01:56:33+00:00Added an answer on May 13, 2026 at 1:56 am

    Mind that there are two memcache extensions for PHP, one is called memcache, the other memcached, the first uses it’s own implementation of the memcache protocol, the later uses the library.

    If you’re using the first you shouldn’t have a conflcit but have to take care of memcache on your own. I’d suggest building an extension which depends on the memcached and re uses the library it found.

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

Sidebar

Related Questions

I was thinking of writing a PHP script that would analyse a CMS'd page's
I'm thinking about writing a small application that will help me mass rename files.
I am writing a PHP function that will need to loop over an array
I'm writing a php script that will fetch data from a given URL and
I have been thinking of maybe writing a little tool that logs into SO
I am currently writing a script that will basically ‘install’ a codeigniter installation automatically.
I was thinking of writing some code in PHP to change all the id
I have run into an odd situation. I'm writing a JavaScript bookmarklet that will
I'm thinking of writing a new web-based game, and wondered if anyone had any
I'm thinking of writing an app to selectively transfer photos/music to and from my

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.