Novo curso! Todo programador deveria aprender IA generativa!
Experimente uma aula grƔtis+ 6
šøļøHow to prepare a list of hyperlinks for the text files in a some directory using PHP glob () ??
4 Respostas
+ 16
$arr=glob('*.txt');
foreach($arr as $file){
echo "<a href=".realpath($file)."> $file</a>"
}
+ 4
foreach (glob(*.txt) as $file { echo $file }
0
mom
0
mom