I think that $randomImage already includes your $dir because you included it in your glob() call.
I think your code should be...
echo '{img src="'.$randomImage.'" width=89}'
(replace curly braces with less-than/greater-than)
I believe this will also work...
echo "{img src=\"$randomImage\" width=89}"
(again, replace curly braces with less-than/greater-than)
Try this. After your glob() call, add this line...
print_r($images);
...And look at the output.
GroovyMAME support forum on BYOAC
Edited by krick (02/09/14 06:45 PM)
|