Re: Linking to images above the webspace
| From: | Michelle Konzack | Date: | Fri, 17 Jul 2009 12:28:12 +0000 |
| Subject: | Re: Linking to images above the webspace | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-295516@lists.php.net to get a copy of this message | ||
Am 2009-07-17 14:23:30, schrieb Nitsan Bin-Nun:
> You can create a PHP script which will serve files based on their location
> which will be transfered through a GET parameter.
> Just send the correct response headers which will be corresponded to the
> file's mime type, size, etc.
>
> Then use something like:
> <img src='a.php?image_full_path=/home/root/etc/fdsa.jpg' />
>
> Good luck!
"Good luck!" is good... He should be careful with such stuff... because
someone can do something like:
wget http://${SERVER}/a.php?image_full_path=/etc/passwd
Thanks, Greetings and nice Day/Evening
Michelle Konzack
Systemadministrator
Tamay Dogan Network
Debian GNU/Linux Consultant
--
Linux-User #280138 with the Linux Counter, http://counter.li.org/
##################### Debian GNU/Linux Consultant #####################
Michelle Konzack c/o Shared Office KabelBW ICQ #328449886
+49/177/9351947 Blumenstasse 2 MSN LinuxMichi
+33/6/61925193 77694 Kehl/Germany IRC #Debian (irc.icq.com)