I have a dynamic resizing image script that gets the location of the image to be resized-on-the-fly from a GET variable.
How can I limit the script so that it ONLY works if a local image is passed?
Thanks!
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Check if the file exists on your hard disk:
Don’t forget to cleanup any GET or POST vars before using in your code.