I wanted a Joomla extension which would (among other things) allow me to show a different image for every day of the month but couldn't find one.
So I decided to learn PHP to do the job. I wrote some code which works perfectly under WAMP as PHP using:
$handle = opendir(dirname(realpath(__FILE__)).$imagedir) or die ("cannot open directory");
However when I use this in Metamod etc I get an opendir function error.
Please explain how I should reformat this for Joomla 3.