11Tami Posted October 26, 2006 Share Posted October 26, 2006 ss Link to comment https://forums.phpfreaks.com/topic/25175-how-to-get-this-small-code-to-to-include-a-gif-instead/ Share on other sites More sharing options...
Psycho Posted October 26, 2006 Share Posted October 26, 2006 You need to be a little more specific by what you mean to "include a gif". the include function merely reads the file specified as code. So, you are reading the contents of the gif as code, thus the numbers.I am going to assume you are wanting this code to display a gif. In that case you cuold do something like this:[code]<?php$getfile = date("j");$imagefile = "file" . $getfile . ".gif";echo "<img src=\"$imagefile\">";?>[/code] Link to comment https://forums.phpfreaks.com/topic/25175-how-to-get-this-small-code-to-to-include-a-gif-instead/#findComment-114768 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.