Reply to Re: How to create subdomain for each member when they registed on my site!

Your name:

Reply:


Posted by d on 03/24/06 16:04

"Andy Jeffries" <news@andyjeffries.co.uk> wrote in message
news:pan.2006.03.24.12.23.44.171628@andyjeffries.co.uk...
> On Fri, 24 Mar 2006 11:54:40 +0000, d wrote:
>>>>>> For example, visit this site http://deviantart.com and try to
>>>>>> register one
>>>>>> account. I have a account is thehetre. And this site create a sub
>>>>>> domain for me (include) : http://thehetre.deviantart.com
>>>>>>
>>>>>> So, how to doing like this in PHP or another web program language?
>>>>>> Please show your solution or script you know. Thanks so much!!!
>>>>>
>>>>> Use "ServerAlias *.deviantart.com" within your virtual host in Apache,
>>>>> then parse $_SERVER[HTTP_HOST] in a PHP file (you can use autoprepend)
>>>>> to get the first part.
>>>>>
>>>>> Cheers,
>>>>
>>>> You will need to make sure the DNS for *.site.com is pointing to
>>>> site.com for that to work...
>>>
>>> Oh yeah, forgot to say that (my DNS script that updates tinydns does
>>> that automatically - hence not something I'd think of saying).
>>
>> Then you're set :) ServerAlias will sort you out nicely :)
>
> It does, have you confused that I posted the advice not the original
> question? ;-)

I meant "you" as in "one" :-P

> Cheers,
>
>
> Andy
>
> --
> Andy Jeffries MBCS CITP ZCE | gPHPEdit Lead Developer
> http://www.gphpedit.org | PHP editor for Gnome 2
> http://www.andyjeffries.co.uk | Personal site and photos
>

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация