Page 1 of 1

how can i create virtual folders in server automatically...

Posted: Mon Jul 03, 2006 11:39 pm
by B.Murali Krishna
i need to generate vitual folder through php program in apache server, by which i can generate subdomains
.
for ex: if i click on the links of my site

link1 link12 ---------------------

like that, when i click on this link generally we will generate folder naming link1 by mkdir() function in server
then the url will be sitename.com/link1/

but i need to generate the url like: http://link1.sitename.com

ie virtual folder, so how can i create those by program, in apache server,

i hope i have given u the clear picture of my doubt,

i hope the best from u,

Posted: Tue Jul 04, 2006 1:16 am
by jmut
You should be more specific at your question.
Do you know how to create them without using application (by hand)?
What server are you using?
You said you have an application (maybe we will have to do a snippet from it at some point).

Posted: Tue Jul 04, 2006 3:19 am
by Jenk
after a quick google, I doubt this is possible as Apache will need to be restarted - vhosts need to be specified in httpd.conf.