How to create subdomains with PHP code????? Plz help.

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
ashzepp
Forum Newbie
Posts: 4
Joined: Mon Jun 17, 2002 2:41 pm

How to create subdomains with PHP code????? Plz help.

Post by ashzepp »

Hi everybody,
Can anyone tell me how to create a subdomain on the server on the fly with PHP code. I doubt it's possible or not. But in the past I've been allways wrong when doubting capablities of PHP. So if u have a solution or suggestion please respond. Your help is really really appreciated.
Regards
Ashzepp
User avatar
protokol
Forum Contributor
Posts: 353
Joined: Fri Jun 21, 2002 7:00 pm
Location: Cleveland, OH
Contact:

Post by protokol »

Creating a sub-domain is a process that is done by editing your server's configuration file. Depending on what server is used, this can be done quite differently.

If you use Apache, visit http://www.cfdev.com/apache/virtualhosts.cfm to learn how to edit httpd.conf to do what you want.
User avatar
FireyIce01
Forum Newbie
Posts: 6
Joined: Fri Jun 21, 2002 2:16 pm
Contact:

Post by FireyIce01 »

How about subdomains with IIS? 8)
Post Reply