Check if directory exists before creating
Posted on 2006-11-14
I have a text field in a form, and what i would like to happen is for when a user starts typing in a name of a folder to create i need it to display back on screen (underneath text field for example) whether if directory exist or not. It would only need to check 1 directory to see if a the new directory name exists when being entered. In this case for my purpose it is the previous directory to where the script would work... so '../'
I hope some one can shine some light on this.