| | |||||
| ||||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | THREAD STARTER #1 (permalink) |
| NamePros Member Join Date: Feb 2005
Posts: 82
![]() | Index page displaying folder content Is there a way to create an index page (with customisable layout) that automaticaly lists the files contained in the same folder with a hyperlink so that people can download the file directly? The index page will update itself everytime a file is copied into the folder.
Last edited by hitman; 10-25-2006 at 12:15 PM.
|
| |
| | #2 (permalink) |
| NamePros Member Join Date: Mar 2006 Location: USA - RI
Posts: 49
![]() | There is a way to do it in php, insert this code into where you want the links to be: PHP Code: file1.exe file2.zip file3.jpg With hyperlinks to the files. |
| |
| | THREAD STARTER #3 (permalink) | ||||
| NamePros Member Join Date: Feb 2005
Posts: 82
![]() | Thanks! I've uploaded an index file with only this in it: PHP Code:
| ||||
| |
| | #5 (permalink) | ||||
![]() Join Date: Jul 2005 Location: Coffs H, Australia
Posts: 3,456
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() |
????: NamePros.com http://www.namepros.com/showthread.php?t=250791 So maybe try changing dir to this if that doesn't work. $dir = "/home/.server/username/domain.com/series/uploads/"; Rhett.
__________________ Free Forums / GoDaddy Coupon Codes (NEW DOMAIN!) / Free Arcade Script / <?='Your computer is '.(1?fine:broken).'.'?> | ||||
| |