chrismccoy
03-09-2007, 12:48 PM
was wondering if anyone had a snippet for something like this.
i am looking for a script like this
http://thesuperficial.com/image.php?path=/2007/03/haylie-duff-cavallari-south-beach-01.jpg
thanks for any help
Nightfire
03-09-2007, 12:56 PM
<a href="site.com"><img src="<?php echo $_GET['image'];?>"></a>
Filepath for the image will be
site.com/?image=pathtoimagefile.jpg
Simple and very unsecure way of doing it
aedrin
03-09-2007, 04:47 PM
Simple and very unsecure way of doing it
There is nothing wrong with doing it this way, just make sure you do some security checks.
As always, validate input from $_GET or $_POST.
However, nothing is going to happen if a user changes the query string to show his own picture. All it will do is change how it looks for that person. There is little to gain from it.