I have cpanel and it allows me to create subdomains in the admin center. When I do, it automatically generates a directory by the same name of the subdomain which includes a cgi-bin directory. My question is this... is there a way to make a php script that will do the same thing BUT create an index page & a variables page with the variables page having the name of the subdomain in it?
For instance...
I create
http://california.quotingloans.com and it has a variables page that writes this..
<?php
$keyword = 'california';
?>
or if I did this subdomain...
I create
http://loans.quotingloans.com and it has a variables page that writes this..
<?php
$keyword = 'loans';
?>
IN each directory created, an index.htm file is generated. I would also create a htaccess file too to make the .htm file run like an .php file with addtype.
Is there any way to do this in php? Any ideas out there? I want to do this so that I could make creating sub domains easier.
Chris Chandler
Webmaster of
QUOTING LOANS