Alright, I made this random image script in PHP:
$FileName = "wallpapers.txt";
$FilePointer = fopen($FileName,"r");
$Array = file($FileName);
fclose($FilePointer);
srand((double)microtime() * 1000000);
$RandomNumber = rand(1,52);
$picture = $Array[$RandomNumber];
echo "<img src=\"$picture\">";
wallpapers.txt has the locations of all of the images, 1 image per line.
Is that how you would do it, or is there another, better way?
$FileName = "wallpapers.txt";
$FilePointer = fopen($FileName,"r");
$Array = file($FileName);
fclose($FilePointer);
srand((double)microtime() * 1000000);
$RandomNumber = rand(1,52);
$picture = $Array[$RandomNumber];
echo "<img src=\"$picture\">";
wallpapers.txt has the locations of all of the images, 1 image per line.
Is that how you would do it, or is there another, better way?