Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

printing a folder content

Status
Not open for further replies.

alexxxis

Programmer
Sep 21, 2006
38
0
0
RO
hi. here`s what i want to do
i want to show the files in a folder in a webpage , and also let the user download the files. can it be done ?
thanks.
 
But I suppose you'll want more than a flippant answer to your direct question.

One way is to use opendir() (read the page, especially the example code) to fetch the contents of a directory. All you have to do then is put <a href="....">...</a> tags around each item as you print.

Another way is to use glob() (again, look at the page and the example code) to fetch a directory's contentents.



Want the best answers? Ask the best questions! TANSTAAFL!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top