Page 1 of 1

best project developent for multi users service

Posted: Fri Dec 29, 2006 3:59 pm
by webstyler
Hello

We have a mailing php/mysql script

Our customer can login and then manage your newsletter

Now we must re-development the project

For any customer we must create on server a subdomain

Example of actual project
Master plan http://www.example.com
Any customers of he can login and send mailing.

Future project
Any customer can login into specific and dedicated subdomain that is independent hosting plan
http://c1.example.com | customer 1
http://c2.example.com | customer 2
http://c3.example.com | customer 3

Any subdomain is a hosting plan with specific details.
BUT any subdomain must contain a specific php file and include/required php function/classes from the master domain.

Any suggestion ??

The major problem is that all customer must have a plan but mailing script is unique (php/mysql based)

Thks

Posted: Fri Dec 29, 2006 4:21 pm
by RobertGonzalez
mod_rewrite.

front controller.

Search for those two terms as they can save you a world of time and pain when doing what I think you are doing.

Posted: Fri Dec 29, 2006 5:21 pm
by webstyler
Everah wrote:mod_rewrite.

front controller.

Search for those two terms as they can save you a world of time and pain when doing what I think you are doing.
yes, we already use for other projects but not sure useful for this.. :)

subdomain is a single hosting plan

all subdomain must be a independent hosting space BUT all subdomains must include/require code from master plan..

think not only apache mod rewrite :)

tx

Posted: Sat Dec 30, 2006 8:37 am
by RobertGonzalez
Who is going to manage and include the files from the master plan? I only ask that because you could have files just about anywhere on the server and grab them by include() from where ever they happen to be.