yesterday, I posted a question into the general programming thrread. today, I actually have code to troubleshoot.
I’m trying to cycle some html docs on pageload. I found a chunk of code that cycles images based on a time hash. code is
<?php $i = (bcmod(intval(time()),60)) % 6;
print '<img src="images/header_image' . $i . '.jpg" style="float:right;" />'
?>
I’d like to modify that to pull html files into an iframe, but so far, I’m getting the syntax wrong (or I’m trying to use a screwdrive to hammer in a nail)
Any advice?
<?php $i = (bcmod(intval(time()),60)) % 6;
print '<iframe src="directory/filename' . $i . '.html" />'
?>