help in php script
| From: | Deepak Dhake | Date: | Thu, 04 Nov 2004 15:15:17 +0000 |
| Subject: | help in php script | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-201175@lists.php.net to get a copy of this message | ||
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