[EdLUG] Help 5

Dick Middleton dick at fouter.net
Wed May 6 17:46:53 UTC 2020


On 2020-05-06 18:40, Andrew Ramage wrote:
> I am still bug hunting, but am also looking at the second part of the site.  Is this right ?

> 
>  while (($file = readdir($musicdir)) !== false){
>       echo $file . "<br>";
> 
> </script>
> 
> 

readdir returns a directory i.e. array of file names.  You need to pick one and then open
file and read file. Beware the . and .. entries.

Dick



More information about the EdLUG mailing list