Jump to content

Recommended Posts

Hello all,

I am writing new php application which will be used by several sites.
All sites will use same script (all files), but every will have its own config.php file.
I would like to place all necessary files to separate directory and all sites should share them, so all sites will be updated.

for e.x. structure will be:

| - script directory
|- site1.com dir
    config.php
|- site2.com dir
    config.php
|- site3.com dir
    config.php

Does anyone have idea how to organize and share files?


Thanks For Your Time !
Link to comment
https://forums.phpfreaks.com/topic/28930-several-sites-sharing-the-same-script/
Share on other sites

Maybe I'm missing something here, but I don't see the problem.

The example dir structure you posted will work just fine. Even if the scripts are on a different host you could still include them (with allow_url_fopen set to true in php.ini).
This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.