|
|
|||||||||
|
|||||||||
| |||||||||
|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
|
|
#1
|
|||
|
|||
|
How to see if an image file exists
I'm building some dynamic image links based on if the image file exists.
How can I check 'if files exists' using asp or javascript? I've messed around some with FileSystemObject but so far no success. Thanks in advance for any suggestions. Heinz |
|
#2
|
|||
|
|||
|
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:
|
|
#3
|
||||
|
||||
|
__________________
And you know I mean that. |
![]() |
| Viewing: Dev Shed Forums > Programming Languages - More > ASP Programming > How to see if an image file exists |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|
|