note 39166 added to function.rand
| From: | mail at robbiegee dot com | Date: | Mon, 19 Jan 2004 15:01:00 +0000 |
| Subject: | note 39166 added to function.rand | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-63830@lists.php.net to get a copy of this message | ||
If you do this for your images:
<img src="someimage.jpg?<?php=rand()?>" />
This can help you catching bandwidth thieves as most newbies will copy the entire string, including
what comes after the question mark since they don't understand it. What will happen then, is
that the URI will start showing up in the site stats since it no longer is filtered out due to only
one request.
----
Manual Page -- http://www.php.net/manual/en/function.rand.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+39166
Delete -- http://master.php.net/manage/user-notes.php?action=delete+39166&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+39166&report=yes
Search -- http://master.php.net/manage/user-notes.php