Originally posted by diego25
Sorry for misunderstanding 🙂
Are you saying that the images will be like
<img src="c:/my documents/pics/img.jpg">
? And you'd like to check if c:/my documents/pics/img.jpg exists?
Or are you saying that the user will upload the image to your server and your image tag will reference your own server?
Diego
I am saying the first. from a posted form the user will have a temporary variable pointed to an image on their hard drive such as:
<img src="c:/my documents/pics/img.jpg">
Except it will be more something like
echo "<img src=".$picturelocationvariable.">";
However, I will ALSO (though not the topic of this thread) be creating new user directory's based on their user id for storing temporary images for helping to validate login in terms of a random picture generator (ie - "please type in the security code that you see in the picture in the text box below"). This will be server-side only.
I haven't looked into it yet, so it might be very simple, but if somebody knows how to create a new sub-directory with PHP, if you would like to post it, that would be cool. Otherwise I'll be looking into that in the near future.
However, my initial question still remains: Is it a risk for the server to validate the existence of an image from a user's hard drive?