Consider what might be served back to the outside world if the "photo" param was '../../../../usr/mydata/private.txt' for example.
You're creating a script which could potentially give read-access to any file on the server. As a first step, look up "taint mode" and turn it on!
In reply to Re: Image on web page
by oxone
in thread Image on web page
by daynite
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |