Reply LinkBack Thread Tools Search this Thread
Old 07-04-2004, 11:04   #1 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
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
  Reply With Quote
Old 07-04-2004, 11:09   #2 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,235
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Old 07-04-2004, 11:32   #3 (permalink)
Bill Posters
trouble free and loverlee
 
Join Date: Mar 2003
Location: YooKay
Posts: 2,968
ta, luv
seems just the ticket
  Reply With Quote
Old 07-04-2004, 11:35   #4 (permalink)
smallbeer
I Ain't Losing Any Sleep™
 
Join Date: Apr 2003
Posts: 5,235
Quote:
Originally Posted by Bill Posters
ta, luv
__________________
That's fuckin' ingenious, if I understand it correctly. It's a Swiss fuckin' watch.
  Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search


Contact Us - Web Design Forums - Archive - Top
Search Engine Optimization by vBSEO 3.0.0 RC8