
December 1st, 2002, 12:52 AM
|
|
Contributing User
|
|
Join Date: Sep 2001
Location: NJ
Posts: 428
  
Time spent in forums: 11 h 34 m 8 sec
Reputation Power: 15
|
|
The FileSystemObject has a method called fileExists(). Use this to check. You may have to use the server method, server.mappath, to ensure that you are using the full path to the file.
PHP Code:
set fso = server.createObject("Scripting.FileSystemObject")
if fso.fileExits(server.mappath("relative/file/path")) then
response.write "file exists"
else
response.write "file does not exist"
end if
|