<?php
opentable($locale['global_035']);
$dir = "../images/"; // The relative path to the image directory
$pictures = glob("$dir/{*.jpg,*.jpeg,*.gif,*.png}",GLOB_BRACE);
$img = $pictures[mt_rand(0,count($pictures)-1)];
echo '<img src="' . $img . '">';
closeside();
?>
openside($locale['global_035']);
closeside();
Quote
m3r wrote:
how does it work with <?php and ?> ?
openside("test");
$dir = BASEDIR."YOUR_FOLDER/"; // The relative path to the image directory
$pictures = glob("$dir/{*.jpg,*.jpeg,*.gif,*.png}",GLOB_BRACE);
$img = $pictures[mt_rand(0,count($pictures)-1)];
echo '<img src="' . $img . '">';
closeside();
openside("test");
$dir = BASEDIR."YOUR_FOLDER/"; // The relative path to the image directory
$pictures = glob("$dir/{*.jpg,*.jpeg,*.gif,*.png}",GLOB_BRACE);
$img = $pictures[mt_rand(0,count($pictures)-1)];
echo '<img src="' . $img . '" width="120" height="100" alt="" />';
closeside();
Category Forum
Panels and InfusionsLabels
None yet
Statistics
6 participants
Notifications
You are not receiving notifications from this thread.
Related Questions