how to check if a file exists in a folder??

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

how to check if a file exists in a folder??

Post by susrisha »

hi all,

i want to know how i can check if a file already exists in a given folder..

can anyone help me??
User avatar
The_Anomaly
Forum Contributor
Posts: 196
Joined: Fri Aug 08, 2008 4:56 pm
Location: Tirana, Albania

Re: how to check if a file exists in a folder??

Post by The_Anomaly »

file_exists() is your man.
User avatar
susrisha
Forum Contributor
Posts: 439
Joined: Thu Aug 07, 2008 11:43 pm
Location: Hyderabad India

Re: how to check if a file exists in a folder??

Post by susrisha »

thanks alott
Post Reply