šŸ”øļøHow to prepare a list of hyperlinks for the text files in a some directory using PHP glob () ?? | Sololearn: Learn to code for FREE!
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 () ??

30th Apr 2019, 8:37 AM
Nithya Yamasinghe
Nithya Yamasinghe - avatar
4 Respostas
+ 16
$arr=glob('*.txt'); foreach($arr as $file){ echo "<a href=".realpath($file)."> $file</a>" }
14th May 2019, 7:21 PM
Prashanth Kumar
Prashanth Kumar - avatar
+ 4
foreach (glob(*.txt) as $file { echo $file }
30th Apr 2019, 2:16 PM
::sŠŗ::
::sŠŗ:: - avatar
0
mom
30th Apr 2019, 7:12 PM
Maxser Gamer TV
Maxser Gamer TV - avatar
0
mom
1st May 2019, 4:15 PM
Halim Sanue
Halim Sanue - avatar