I'm having problems storing filenames into an array so i can store them into variables.
<?php
if ($handle = opendir('.')) {
while (false !== ($file = readdir($handle))) {
if ($file != "." && $file != "..") {
echo "$file ";
}
}
closedir($handle);
}
?>
What I ever I do, it only stores either the last filename or screen goes blank.