PS I'm on my windows apache server but the forward slash seems to work
OK actually, it was the back slash that was causing problems, it only works with a forward slash!
but... I've still got the include error:
???
Parse error, unexpected T_INCLUDE
#call $dirstr= "./" include 'scandir.php';#### error here #### scandir('$dirstr');
#function
function scandir($dirstr) {
$files = array();
$fh = opendir($dirstr);
while (false !== ($filename = readdir($fh))) {
array_push($files, $filename);
}
closedir($fh);
return $files;
}-- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

