Jump to content

several sites sharing the same script


internet.maestro

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).

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.