View file timedate/time.php
<?php $file = "1.gif"; $time = date("H:i:s"); $one = ImageCreateFromGif($file); $text = ImageColorAllocate($one, 40, 24, 20); $text = ImageColorAllocate($one, 0, 0, 128); #ff0033 ImageString($one, 12, 7, 9, $time, $text); header("Content-type: image/gif"); ImageGif($one); ImageDestroy($one); ?>