Jump to content

print all filenames from a folder w/ php


doa24uk

Recommended Posts

Hi guys,

 

For this example, my site is - http://www.none.com

Lets say I have a folder on my server called /folder/ (I know, very original :D) and in this folder I have the following files ...

 

1.zip

3.jpg

23.zip

lol.mp3

special.doc

(basically a random selection of all filetypes).

 

What php code would I use to generate the following output :-

 

http://www.none.com/folder/1.zip

http://www.none.com/folder/3.jpg

http://www.none.com/folder/23.zip

http://www.none.com/folder/lol.mp3

http://www.none.com/folder/special.doc

 

Many thanks for the help.

 

DoA

Link to comment
https://forums.phpfreaks.com/topic/48522-print-all-filenames-from-a-folder-w-php/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.