Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How can I check if a sub directory exists? 1

Status
Not open for further replies.

AJParkinson

Technical User
Apr 11, 2003
74
0
0
GB
Newbie to PHP, I have an image gallery where the images from individual events are stored in separate directories.
I've got a calender that passes a variable via a form (post method) and is picked up by a php script. This works well but only if the matching folder (name of variable) exists. How can I check via PHP script to see if a folder exists?

Any help appreciated
Many thanks in advance
 
Many thanks sleipnir214, got it working along with a few other problems I found the answers to leading from this link - have a star!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top