ok, so i'm using craftyminds Flash photo thingy from here and I can get it to work in the same directory that the gallery.php file is in, but not in any other directory....it's driving me bonkers.
This works
<?php
$xml = '<?xml version="1.0"?'.'>';
$filepath = ".";
$handle = opendir($filepath);
while (false != ($file = readdir($handle))) {
$pic = @getimagesize($file);
if($pic != false && $pic[2] == 2){
$xml .= '<img src="'.$file.'" width="'.$pic[0].'" height="'.$pic[1].'" />';
}
}
echo $xml;
closedir($handle);
?>
This does not:
<?php
$xml = '<?xml version="1.0"?'.'>';
$filepath = "test";
$handle = opendir($filepath);
while (false != ($file = readdir($handle))) {
$pic = @getimagesize($file);
if($pic != false && $pic[2] == 2){
$xml .= '<img src="'.$file.'" width="'.$pic[0].'" height="'.$pic[1].'" />';
}
}
echo $xml;
closedir($handle);
?>
neither does
$filepath = "/test";
$filepath = "/test/";
$filepath = "./test";
or anything like that. Am I insane? If I can get this to work, I'm eventually wanting to add a list of folders that get passed via $_GET in the URL string to choose the gallery the user is viewing...baby steps.
