Location: PHPKode > scripts > Random Picture > random-picture/MyPicture.class.php
<?php
/*
=======================================================================
=      ()()()()() ()()()() ()()()()() ()()()() ()()() ()()()()()()
=      ()      () ()    () ()      () ()         ()   ()
=      ()      () ()    () ()      () ()         ()   ()
=      ()()()()() ()()()() ()()()()() ()         ()   ()
=      ()         ()    () ()   \\    ()()()()   ()   ()  ()()()()
=      ()         ()    () ()    \\         ()   ()   ()        ()
=      ()         ()    () ()     \\        ()   ()   ()        ()
=      ()         ()    () ()      \\ ()()()() ()()() ()()()()()()
=======================================================================
All Right Reserved By Morteza Hosseiny - www.parsig.com
=======================================================================
*/
	class MyPicture
		{
			public $img;
			function MyPicture()
				{
					$f = file_get_contents('config.txt');
					$list = explode('+', $f);
					$max = count($list);
					$this -> img = $list[rand(0, $max-1)];
					echo $this -> img; 
				}
		}

?>
Return current item: Random Picture