Hi all;
I'm having one of those days! 🙁 :mad:
I have a small snippet , below, which does displays a file randomly. It is not DB driven and it's super basic!
It works fine when I want to include a html or php file but when I try it with images, it tries to parse or run the image.
After taking a VERY long time, it displays the source code of image in weird format.
In this example, it works fine with test.php , but not the other two....
Any ideas?
$id[] = 'images/daei_1.jpg';
$id[] = 'images/maradona2.jpg';
$id[] = 'test.php';
$pick=rand(1,3);
include($id[$pick]);