Question!

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

Post Reply
User avatar
Jeff
Posts: 1402
Joined: Sun Dec 26, 2004 1:39 pm
Location: Probably banned soon...
Contact:

Question!

Post by Jeff » Sat Dec 31, 2005 9:55 pm

I want to make my avatar a random image...how would I do that? (I tried the PHP way, didn't work)
PS360Wii Fanboy FTW!

User avatar
nos_slived
Higher Idiot
Posts: 3476
Joined: Mon Mar 21, 2005 6:32 pm
Location: Burnaby, BC, Canada
Contact:

Post by nos_slived » Sat Dec 31, 2005 9:58 pm

Either use one of the services that other users use, or create a PHP script with an image file extension(probably JPG/JPEG), and use your .ht file to use the PHP parser for that type of file(set the PHP headers).

The headers in your script:

Code: Select all

header ('Content-type: image/jpeg');
header ('Cache-Control: no-store, no-cache, must-revalidate, post-check=0, pre-check=0');
header ('Expires: Fri, 12 May 1978 12:33:00 GMT');
header ('Pragma: no-cache');
Add to you .ht file(.htaccess):

Code: Select all

AddType application/x-httpd-php .jpg .jpeg .gif
Image

Post Reply