note 46902 deleted from function.imagejpeg by sean
| From: | sean@php.net | Date: | Thu, 28 Oct 2004 14:12:43 +0000 |
| Subject: | note 46902 deleted from function.imagejpeg by sean | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-79252@lists.php.net to get a copy of this message | ||
Note Submitter: phil at pkulak dot com
----
If you are using a script to output an image, consider using it in conjuction with mod_rewrite.
It's good for security through obscurity (on-the-fly image generation can be a great exploit
for DOS attacks) and it just looks a lot cleaner to the user. Something like the following will
allow you to use src="myfile-100-100.jpg" instead of
src="displayImage.php?image=myfile&w=100&h=100"
RewriteRule ^(.+?)\-(\d+?)\-(\d+?)\.jpg$ displayImage.php?image=$1&w=$2&h=$3
----
Reason: useless note