🔸️How to prepare a list of hyperlinks for the text files in a some directory using PHP glob () ?? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 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 Answers
+ 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