Forum Moderators: coopster

Message Too Old, No Replies

PHP-redirect

php-redirection

         

polar

7:28 pm on May 1, 2003 (gmt 0)

10+ Year Member



Hi all,
Can you help me. I have setup a site where you can create Flash websites. When you log in to do this, a folder with the username that you chose is created. This folder is created within the "siteusers " folder, which is situated in the root
If you choose the username "smith" then this website will have the address "example.co.uk/siteusers/smith". What I am after is a code so that using Wildcarded DNS the user can type in www.smith.example.co.uk to access his website.
If I create a folder in root called "smith.example.co.uk". then when I type in www.smith.example.co.uk, i can see the folder. It is just how do I create the folder in the first place once the user is logged in.

How can I create a folder in root with the users name + example from the folder situated in the "siteusers" folder and copy contents.

I have seen some scripts but I don't think they are what I want.

My webhost tells me I have wild carded DNS how can I test this.

Can anyone help, is this possible

Polar

[edited by: jatar_k at 10:30 pm (utc) on May 2, 2003]
[edit reason] Wigetized [/edit]

jatar_k

4:36 pm on May 5, 2003 (gmt 0)

WebmasterWorld Administrator 10+ Year Member



Welcome to WebmasterWorld polar, sorry your post seemed to have slipped by everyone.

How can I create a folder in root with the users name + example from the folder situated in the "siteusers" folder and copy contents.

with php you should be able to use mkdir [php.net] to create the directory