Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

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

Posts: 679
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.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
Lashtal is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 06-28-2009, 07:35 PM Re: automatically assign Subdomain to end-user
Extreme Talker

Posts: 181
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
__________________

Please login or register to view this content. Registration is FREE
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
wherenomanhasgonebefore

Posts: 679
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
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
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

Posts: 2,781
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=
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
NullPointer is online now
Reply With Quote
View Public Profile Visit NullPointer's homepage!
 
Old 07-02-2009, 04:36 PM Re: automatically assign Subdomain to end-user
Lashtal's Avatar
wherenomanhasgonebefore

Posts: 679
Name: Lashtal
Trades: 0
Nice. Thank you. I will be looking at this and working it out.
__________________
Currently Reading:
Please login or register to view this content. Registration is FREE
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

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
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.22842 seconds with 12 queries