PDA

View Full Version : Dont copy over file on server


Jabbamonkey
08-20-2002, 04:04 PM
I am able to upload files to my server using a php webform. BUT, I don't want to accidentally copy over a file that is already on the server. How do I check (using php) and see if a file already exists on the server (in a specific folder)?

Ökii
08-20-2002, 06:24 PM
if(file_exists($dirname.'/'.$filename)) {.........}