creating a new folder via code

Reply

Join Date: Apr 2006
Posts: 1
Reputation: krikette is an unknown quantity at this point 
Solved Threads: 0
krikette krikette is offline Offline
Newbie Poster

creating a new folder via code

 
0
  #1
Apr 2nd, 2006
I want to be able to let users create a subdomain during their registration so that they can choose a name and it become their URL for reaching the page they can create on my site.

EX: User chooses bobandsue
They will be able to reach their url by either http://bridalnetworks.net/bobandsue or, preferrably, http://bobandsue.bridalnetworks.net

This way they can have a folder setup automatically to upload their photos and files to.

Any ideas or push/nudges in the right direction?

Katy
Reply With Quote Quick reply to this message  
Join Date: Apr 2005
Posts: 26
Reputation: Walyer is an unknown quantity at this point 
Solved Threads: 1
Walyer's Avatar
Walyer Walyer is offline Offline
Light Poster

Re: creating a new folder via code

 
0
  #2
Apr 3rd, 2006
Hey Katy,

to create a a folder, use this syntax

<cfdirectory directory= "#ExpandPath( '.\NewFolder\' )#" action="create">

Now we've just created this,

http://bridalnetworks.net/NewFolder

Now all you have to do is create the user input and integrate it with the syntax above

There's you nudge

Walyer

Walyer's Playpen
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:


Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC