Forums
This topic is locked
Please, help!
Posted 31 Jan 2008 15:03:50
1
has voted
31 Jan 2008 15:03:50 Lorenzo Foster posted:
Hello,I am a photographer, not a developer, and I have a question or two for you guys. I am using Dreamweaver 8 and I am understanding all the database connections, and all. but what I need is this. I am making a website that once you start the process to sign up as a new user, if that username is not in use by checking the database, it will create a new user folder with your new username on the server in the folder "Customers."
ie, my new non taken username is maxx2008. I would like to create a folder named maxx2008 on the webserver.
The second part is: as a returning user, once I log in i am directed to my user folder only after I am authenticated. I am making a website for a photography business for my customers to view only their pertinent photos online and I could use some help, I'd even be willing to pay someone for their time for this small bit of coding. I am only using dreamweaver 8's capabilities and I have hooked up to the database and can query information and all that. can someone help me? I would really appreciate it.
Thanks, Lorenzo
Replies
Replied 01 Feb 2008 10:34:06
01 Feb 2008 10:34:06 Alan C replied:
Hi Lorenzo,
I only do php . . . but you may be able to adapt this . . .
I'm not sure you can do the makedirectory directly from DW, I think you may have to drop into code, which might put you off if you're not familiar with it . . .
I'm working on a site at the moment where my customer wants to have a page showing thumbnails of art then when you click any you go into a slideshow, so the images get uploaded into a directory using ftp, then I have a page that lets you select the directory, it then reads each image, re-sizes it to 3 different sizes and puts each into a separate directory, finally it shows thumbnails and lets the user input title, year etc, then finally it builds the webpage and saves it with an inbuild slideshow.
The code you want for the make directory is
<pre id=code><font face=courier size=2 id=code> mkdir($full_path.'/thumbs'); </font id=code></pre id=code>
where the variable $full_path contains the full path to where you want the directory created - so it takes a form like
<pre id=code><font face=courier size=2 id=code> /home/username/public_html/artists/artist_name/images/</font id=code></pre id=code>
there are php variables for getting parts of the path, so I expect that are equivalents in asp, things like $_SERVER['DOCUMENT_ROOT']
sorry if this looks offputting, but I don't know of an easier way to do it - someone else might
hope that doesn't muddy the water <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
I only do php . . . but you may be able to adapt this . . .
I'm not sure you can do the makedirectory directly from DW, I think you may have to drop into code, which might put you off if you're not familiar with it . . .
I'm working on a site at the moment where my customer wants to have a page showing thumbnails of art then when you click any you go into a slideshow, so the images get uploaded into a directory using ftp, then I have a page that lets you select the directory, it then reads each image, re-sizes it to 3 different sizes and puts each into a separate directory, finally it shows thumbnails and lets the user input title, year etc, then finally it builds the webpage and saves it with an inbuild slideshow.
The code you want for the make directory is
<pre id=code><font face=courier size=2 id=code> mkdir($full_path.'/thumbs'); </font id=code></pre id=code>
where the variable $full_path contains the full path to where you want the directory created - so it takes a form like
<pre id=code><font face=courier size=2 id=code> /home/username/public_html/artists/artist_name/images/</font id=code></pre id=code>
there are php variables for getting parts of the path, so I expect that are equivalents in asp, things like $_SERVER['DOCUMENT_ROOT']
sorry if this looks offputting, but I don't know of an easier way to do it - someone else might
hope that doesn't muddy the water <img src=../images/dmxzone/forum/icon_smile.gif border=0 align=middle>
Replied 01 Feb 2008 17:20:35
01 Feb 2008 17:20:35 Vince Baker replied:
Do a google search on filesysobject and you will find loads of examples of dealing with file/folder creation/edit/deletion.
That should do the trick.
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]
That should do the trick.
Regards
Vince Baker
<strong>DMX Zone Manager</strong>
[VBScript | ASP | HTML | CSS | SQL | Oracle | AS400 | ERP Logic | Hosting]