Hello,
Here's the code I'm using :
<?php
$dirPath = opendir(´images/march´);
while (($file = readdir($dirPath)) != false) {
if ($file != "." && $file != "..") {
printf("$file \n");
}
}
?>
Basically, what it's supposed to do is grab all the file names in the directory, and report them back. It does this, but doesn't insert the \n as I'd like it to. I'm sure it's a syntax problem, but I can't figure it out.
Thanks!