|
 |
 |
 |
 |
$imglist='';
//$img_folder is the variable that holds the path to the banner images. Mine is images/tutorials/
// see that you don't forget about the "/" at the end
$img_folder = "looping_images/home_page/";
mt_srand((double)microtime()*1000);
//use the directory class
$imgs = dir($img_folder);
//read all files from the directory, checks if are images and ads them to a list (see below how to display flash banners)
while ($file = $imgs->read()) {
if (eregi("gif", $file) || eregi("jpg", $file) || eregi("png", $file))
$imglist .= "$file ";
} closedir($imgs->handle);
//put all images into an array
$imglist = explode(" ", $imglist);
$no = sizeof($imglist)-2;
//generate a random number between 0 and the number of images
$random = mt_rand(0, $no);
$image = $imglist[$random];
?>
|
 |
 |
|
|
Helping you guide your mind’s path
If your behaviors and actions are getting in your way, slowing you down or preventing you from getting where you want to be, then you need to take the steps necessary to invite healthy change into your life. Whether the change you need to make is on a cellular level, your personal habits, or in your ability to move freely and peacefully through life, ur path hypnosis and coaching can help.
Ur path director Paula Presnoples utilizes one-on-one coaching and hypnosis – a natural state of physical relation and mental alertness – to help you use your subconscious mind to break through what is holding you back.
Hypnosis is a low-stress, affirmative and scientifically prove way to re-program your subconscious to work with you to help change negative behaviors.
.
|
|
|
|
|
|