FuLouZero-
Member
-Edit 2-
All I need now is a site that will host ftp for free any one got one?
or is willing to let me host them on there site
How would I get it to have a random sig every New view?
I've seen it done before here, I just dont know the code of how to do it or how to do it
So Question is how do you give php code to images and what code would I use for to pick a Image randomly out of a directory?
Edit: Found Script
now Do I put it on a website make a php file with only the script and Image tag the php link?
All I need now is a site that will host ftp for free any one got one?
or is willing to let me host them on there site
How would I get it to have a random sig every New view?
I've seen it done before here, I just dont know the code of how to do it or how to do it
So Question is how do you give php code to images and what code would I use for to pick a Image randomly out of a directory?
Edit: Found Script
PHP:
<?php/* * Name your images 1.jpg, 2.jpg etc. * * Add this line to your page where you want the images to * appear: <?php include "randomimage.php"; ?> */ // Change this to the total number of images in the folder$total = "11";// Change to the type of files to use eg. .jpg or .gif$file_type = ".jpg";// Change to the location of the folder containing the images$image_folder = "images/random";// You do not need to edit below this line$start = "1";$random = mt_rand($start, $total);$image_name = $random . $file_type;echo "<img src=\"$image_folder/$image_name\" alt=\"$image_name\" />";?>