R
Rob Meade
Hi all,
I am allowing a user to create a directory within my application.
I have them entering the name for the directory in a form. When the form is
processed I initially check for any special characters that are not allowed
(Windows based server incidently), from here I then need to check to see
whether the folder name has already been used (either by a previous entry
using the application etc, or reserved names as such ie, /images and so
forth)...
If anyone could suggest a possible solution for this I would be grateful, I
am running this on their hosting companies server, but I dont want to check
the entire disc etc, just within their hosting folder/path - and only at the
root level...
The idea being that it will create directories that are browseable at a
later stage, so when they are created I want :
http://www.domain.com/directory_name_here <-- and thats the level I want to
be checking for the name they've entered etc..
Hope this makes some sence...
Thanks for any help,
Regards
Rob
I am allowing a user to create a directory within my application.
I have them entering the name for the directory in a form. When the form is
processed I initially check for any special characters that are not allowed
(Windows based server incidently), from here I then need to check to see
whether the folder name has already been used (either by a previous entry
using the application etc, or reserved names as such ie, /images and so
forth)...
If anyone could suggest a possible solution for this I would be grateful, I
am running this on their hosting companies server, but I dont want to check
the entire disc etc, just within their hosting folder/path - and only at the
root level...
The idea being that it will create directories that are browseable at a
later stage, so when they are created I want :
http://www.domain.com/directory_name_here <-- and thats the level I want to
be checking for the name they've entered etc..
Hope this makes some sence...
Thanks for any help,
Regards
Rob