To access it from your browser, like in
http://funmail.keystorm.net/MP!/MPavatar.php
Btw, if you store your images anywhere else, you might want to do a slight change to the script to avoid doeuble bandwidth usage.
The script as it is now avoids people to know what the real name of your single avatars is, ie avoids them to
steal the pics (use them from your server).
The other way I suggest for if you are using another server to store the avatars is to create a redirecting script.
instead of:
code:
...
header ('Content-type: image/jpeg');
header( 'Content-Disposition: attachment; filename=avatar');
$f = fopen ($filename, 'rb');
fpassthru ($f); }
...
use:
code:
...
header("Location: http://www.example.com/exampledir/$filename");
...
Btw, I really don't know if this HTTP-header would open the URL in the whole browser or inside the script, because I never used it for that purpose
. But you may try, nevertheless.