| Home | Register | FAQ | Members List | Search | Today's Posts | Mark Forums Read |
|
|
#1 (permalink) |
|
trouble free and loverlee
Join Date: Mar 2003
Location: YooKay
Posts: 2,874
|
quick PHP question… reference a directory?
Just working on some php to process a form and create a directory named after one of the input fields. That's simple enough. Wanna add in a double-check to see if a directory already exists with that name, so I can bounce doubles back to the submittal page. Something like: if (chkdir($directoryname)) { blah blah… Anything like that? tia |
|
|
|
|
|
#2 (permalink) |
|
I Ain't Losing Any Sleep™
Join Date: Apr 2003
Posts: 5,236
|
Check out - http://uk.php.net/function.is-dir That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
|
|
![]() |