| |||||||
| Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics. |
![]() |
| | LinkBack | Thread Tools |
| | #1 (permalink) |
| NamePros Member | 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 11:15 AM. |
| |
| | #2 (permalink) |
| NamePros Member | 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. |
| |
| | #3 (permalink) | |
| NamePros Member | Thanks! I've uploaded an index file with only this in it: PHP Code: Quote:
| |
| |
| | #5 (permalink) | |
![]() | Quote:
So maybe try changing dir to this if that doesn't work. $dir = "/home/.server/username/domain.com/series/uploads/"; Rhett.
__________________ <?php if(1===1){ $computer="fine."; }else{ $computer="broken."; } echo "Your computer is ".$computer; ?> | |
| |
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| |