Having the weirdest problem. I'm using this script:
<?php
$g = array_key_exists ('g', $_GET) ?
$_GET['g'] : p1;
$selected = $g;
//Open images directory
$dir = dir($g);
//List files in images directory
while (($file = $dir->read()) !== false)
{
$ext = substr(strrchr($file, '.'), 1);
if ($ext==jpg)echo "<img src=\"$g/" . $file . "\" alt=\"\" />";
}
$dir->close();
?>
Script works fine and when I upload the images to the server myself they display correctly (in numerical order). But when the owner of the site uploads pictures from her computer they display on the site in backwards order! I have tried everything to make sure she's doing things the same way I am but this keeps happening. Ever heard of this before? What could possibly cause it?
Thanks!
