Triphis, thank you, I think I understand now what was being said... you cleared up my confusion, I did not realize I could to the #include("rotate.php") then in my code just call the function to start the script.
Here the story, I have rotate.php that lives in the image dir, and when it is called it displays a different image to the web browser everytime it is called. I originally had a javascript that I had to everyday load 3 new images into an array to display on the index page every 35 seconds, now I want to call rotate.php to do my dirty work.
Is there another way or should I say a better way to do all of this?