I am trying to preserve my image URL (because it has other sensative information in it) so I am using an if statement so that if somebody goes to the URL img.php?img=_________ it pulls the image and masks its location. The issue is that I am automating the service for the owner of the website using echo = "$address". The issue is that I receive errors when trying to use the $address statement.
For example, on my site when you go to saidurl.php?address=IMAGE.JPG it should pull up the image (but if you try to view the source it shows the private directory). Thus, I am trying to mask it with said php code. Below is the error I receive and the original code and the code after I inputed the echo code:
ERROR:
Parse error: parse error, unexpected T_ECHO in /homepages/2/d161256532/htdocs/coasterworldnews/v2/media/bge07/images/image.php on line 13
CODE (FUNCTIONAL WITHOUT ERRORS)
CODE (WITH ERRORS AND ECHO COMMAND)