First of all do you need a webhost that can host PHP, I prefer
Free Web Hosting with PHP, MySQL and cPanel, No Ads after that you have signed up there, open Notepad, and paste this code into it.
Code:
<?
$file = "avatar".rand(1,2).".jpg";
header("Content-Type: image/jpeg");
$fh=fopen($file,"rb");
while (!feof($fh)) { print (fread($fh, filesize($file))); }
fclose($fh);
?>
Now if you want more then 2 pictures to show, then change the "2" to like 4 if you want to have 4 pictures.
Now save it as "avatar.php".
Now name the two pictures that you want to "avatar1.jpg" and "avatar2.jpg".
Open 000webhos*****m again, and go to the file manager:
And upload the files(avatar.php, avatar1.jpg, avatar2.jpg) to the "public_html" folder:

Now go to your website, in my case *******.comyr.com, and click on "avatar.php" and copy the link, now paste that link into your avatar settings here on MPGH.
!!!!!INFO!!!!!!
Iv'e noticed that this didn't work on MPGH.
but check this link so can you see that it works
CLICK ME! and first will you see one picture then refresh the page, and you should see another one(sometimes do you need to refresh the page several times!)
Thank me if you liked this tutorial, think I will post some more PHP tuts!
