thanks for the reply...
now that it's fixed, may i bring you another problem...
$dir = "images/";
$handle = opendir($dir);
while (($file = readdir($handle)))
{
if (($file!=".")&&($file!="..")&&($file!="thumbs.db"))
{
echo "$file";
if(!file_exists($dir . $file))
{
echo "Error: could not find file: $file.";
exit();
}
//
//another error part
$img = "$dir$file";
$tmp = imagecreatefromjpeg($img);
//i got an error message on the line above, saying 'unable to open the file for reading...'
}
.....//some other buggy code
}
my gd is ver2 and enabled.