Reply
automatically assign Subdomain to end-user
Old 06-28-2009, 06:44 AM automatically assign Subdomain to end-user
Lashtal's Avatar
PHP Learner

Posts: 480
Name: Lashtal
Trades: 0
Does anybody know of a script (either free or commercial) that I would need in order to automatically assign an end-user/site-registrant to a subdomain?

ex.

first person who signs up to site is assigned to: 1.example.com
second person who signs up to site is assigned to: 2.example.com
third person who signs up to site is assigned to: 3.example.com

...and so on.
__________________
AmandaRodrigues.com
Lashtal is offline
Reply With Quote
View Public Profile
 
 
When You Register, These Ads Go Away!
Old 06-28-2009, 07:35 PM Re: automatically assign Subdomain to end-user
Super Talker

Posts: 120
Name: David Jackson
Trades: 0
just write it yourself

If your really learning PHP then this will be a good project to get your teeth into
davidj is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 02:17 AM Re: automatically assign Subdomain to end-user
Lashtal's Avatar
PHP Learner

Posts: 480
Name: Lashtal
Trades: 0
you've got a point.

but i'm also looking to make things work on the fly, too.


the ability to reference a script, for instance; or to ask fellow programmers about such things can also be illuminating for students- as the more experienced typically have a way of broadening your understanding, or making certain concepts or insights immediately available to you; and a REALLY Good teacher, will often give you immediate insight that'd probably take years of self-study to recognize.

Such is the advantage of referencing pre-made scripts, and gaining insight from others more experienced.

At least, that's why I ask questions on this board
__________________
AmandaRodrigues.com
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 06-30-2009, 03:19 AM Re: automatically assign Subdomain to end-user
NullPointer's Avatar
Will Code for Food

Latest Blog Post:
Easy PHP Search with Opera
Posts: 1,048
Name: Matt
Location: Irvine, CA
Trades: 0
This isn't really a PHP question. Sure you could write a script that creates physical subdomains for each user on your server (using exec), but most likely you don't need a physical subdomain. You can use .htaccess to create virtual subdomains instead. This way you get the URL you want (ie user.domain.com) without configuring an actual subdomain for each user.

http://www.google.com/search?hl=en&s...&aq=f&oq=&aqi=
__________________
Tinsology | How to Post Code | EverythingDev
NullPointer is offline
Reply With Quote
View Public Profile
 
Old 07-02-2009, 04:36 PM Re: automatically assign Subdomain to end-user
Lashtal's Avatar
PHP Learner

Posts: 480
Name: Lashtal
Trades: 0
Nice. Thank you. I will be looking at this and working it out.
__________________
AmandaRodrigues.com
Lashtal is offline
Reply With Quote
View Public Profile
 
Old 07-04-2009, 12:12 PM Re: automatically assign Subdomain to end-user
anderswc's Avatar
Super Talker

Posts: 132
Name: Will Anderson
Location: Terre Haute, IN
Trades: 0
Just to get you on the right track, you can configure your subdomains so they all point to one subfolder on your site.

In cPanel you'll want to do *.yourdomain.com and point it to some subfolder. Then in your php you can parse the domain to see what subdomain was used.
__________________
Will Anderson
It's An Anderson | Twitter | Anderson Web Solutions
anderswc is offline
Reply With Quote
View Public Profile Visit anderswc's homepage!
 
Reply     « Reply to automatically assign Subdomain to end-user
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 



Page generated in 0.12160 seconds with 13 queries