Yeah, I'm aware PHP doesn't do DNS stuff, at least not directly. But I am curious as to how people handle subdomains. The 404 error seems like an interesting option, how does anyone else handle this?

-Galen

On Mar 23, 2004, at 10:58 AM, Justin Patrin wrote:

Galen wrote:

Hi,
I've done loads and loads with PHP and MySQL and stuff like that... but never had to really deal with actually creating new domains and subdomains with PHP. Especially with subdomains, I've seen lots of sites create subdomains automatically.
What is the "best" technique for doing all this (if there is one)? I'm sure I could hack something together (I always have) but I'd really like the "best" way - cleanest, fastest, whatever the technique may be.
Thanks,
Galen

You're confusing a couple of concepts I think. PHP cannot create subdomains and such (unless you alter your DNS records with PHP, but I don't think that's what you're talking about.)


Some other people have suggested having your DNS set up to resolve all sub-domains to your main web server, then using a custom 404 script (or index on the site) to look at the requested URL and redirect accordingly.

--
paperCrane <Justin Patrin>

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to