ok i have a site that needs to switch its header from a directory of several different jpgs randomly everytime the site is loaded.
the script i have in my html page is as follows:
<?php
$randInt = rand(1, 8);
echo "<img src="headerImages/head0" + $randInt + ".jpg">";
?>
filepath to an image is headerImages/head02.jpg
this returns the ever popular Parse error… what am i doing wrong??