I have a following PHP file TimeRotateImage.php which prints an image
<?php
$curr_time = (localtime());
if ($curr_time[2] >= 6 and $curr_time[2] <= 17) {
  PRINT IMAGE_1;
}
else {
  PRINT IMAGE_2;
}
?>

I want to use this script in another file to display the image. the tag should be
<img src="TimeRotateImage.php">


But i am not getting any output if i follow the above procedure. Can you tell me how to do it? I have to have the script TimeRotateImage.php which calculates which image to print accoring to local time and i want to embed the file name in html tag to print it on screen.

thanks in advance.
deepak

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to