FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » where to put a php library shared between (virtual) sites.
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: where to put a php library shared between (virtual) sites. [message #181659 is a reply to message #181639] Fri, 24 May 2013 18:11 Go to previous messageGo to previous message
J.O. Aho is currently offline  J.O. Aho
Messages: 194
Registered: September 2010
Karma:
Senior Member
On 24/05/13 16:20, The Natural Philosopher wrote:

> Situation: LAMP installation,. Multiple sites some of which use
> identical scripts, and many of which could (with a bit of parameter
> tweaking) use identical included scripts.
> Multiple sites under /var/www.whatever.whatever and so on
>
> Desired: a place that can be used to PUT these scripts.
> Obviously: anywhere on the server is POSSIBLE.
>
> But where is the most normal place, that e.g. anyone might EXPECT to
> find them?

There is no "most normal" place. You should document the location, one
way could be to add a README.txt in /var/www.whatever.whatever and
hopefully you have a htdoc directory under there in which the site is
located.

If you have many sites that shares the same libraries, I would go with
include_path in php.ini, there are some default paths already added
which are commonly used by php extensions provided through the package
management system. The paths may be different depending on which
distribution you use.

--

//Aho
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Open Portal - web portal software
Next Topic: YouTube script quits displaying "Tags" info
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Fri Nov 22 18:30:15 GMT 2024

Total time taken to generate the page: 0.15442 seconds