Have a look at the Drupal Content Management System.  It is written in PHP, 
provides most (or all) of what you are wanting to do out of the box, and more. 
Search for "drupal multi-site".  It is also open source so if you don't use it 
you could read through the source code.  Perhaps you just need to write a  
module to extend drupal rather than starting from scratch?? http://drupal.org

 

Wes

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of John C
Sent: Monday, August 1, 2016 7:46 PM
To: 'NZ Borland Developers Group - Delphi List'
Subject: Re: [DUG] Multi client website

 

Hi guys

 

Sorry for the delay getting back to you.

 

I'm writing this in PHP5.

 

The suggestion using sessions may be a problem when a user is on a page, goes 
away for a relatively long time, the session times out and a page refresh will 
not work correctly.

 

Any suggestions are very welcome.

 

Thanks

John 

 

From: [email protected] 
[mailto:[email protected]] On Behalf Of Leigh Wanstead
Sent: Monday, August 1, 2016 4:48 PM
To: NZ Borland Developers Group - Delphi List
Subject: Re: [DUG] Multi client website

 

Hi John,

 

You really need to tell us which operating system you plan to use and which 
programming language you plan to write.

 

There is no need to use cookie if you use apache.

 

Here is a url for your reading.

http://stackoverflow.com/questions/11523258/apache-map-single-subdomain-to-folder

 

Regards

Leigh

 

On 31 July 2016 at 13:42, John C <[email protected]> wrote:

Hi all

 

I have a website what will be available to the public but specific for more 
than one clients. The frame work of the website will be the same for each 
client but their images and CSS file will be different (making it look 
differently).

The plan is to have a sub-domain for each client from where it will jump to the 
"common" pages on the main domain. The index file on each sub.domain identifies 
the client and therefore define the directory path to use for the images and 
the CSS file.

I was thinking of doing this with cookies for the paths to be used in the main 
program, but I'm not sure it would be a good plan and if that will work 
properly (setting a cookie from within a sub.domain to be used in the main 
domain).

 

Any ideas or suggestions of how to do this?

 

Thanks a lot in advance

John C

 


_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

 

_______________________________________________
NZ Borland Developers Group - Delphi mailing list
Post: [email protected]
Admin: http://delphi.org.nz/mailman/listinfo/delphi
Unsubscribe: send an email to [email protected] with 
Subject: unsubscribe

Reply via email to