Jump to content

Archived

This topic is now archived and is closed to further replies.

11Tami

How to get this small code to to include a gif instead?

Recommended Posts

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]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.