+ 1
Print files in html page using php
How to display files (text...) in html page accessing the files from a folder using glob() function?. the files won't show in the browser even using apache2 server iN linux OS
3 ответов
+ 3
what version of php you are using ??
glob () wont work on < 5.1 versions..
+ 2
glob function will return an array
try print_r (glob("*"));
0
Hi Prashanth ... the problem is not with php code. It worked perfectly. But the files won't display in browser.
this is the code
$files = glob('music'/*.mp3');
Foreach ($files as $file) {
Print_r($file);
}