| Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read | ![]() |
|
||||||
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|||
|
I need to have a script to show all files in a folder (so customer can view them without FTP) they will change daily.
Anyone go a dirty script to start me off ? I am happy to supply the modified version back to them with added features to display orders on SSL ![]() |
|
|||
|
Code:
$folder = "forum/"; //change directory name as you wish
$handle = opendir($folder);
while ($file = readdir($handle))
{
$files[] = $file;
}
closedir($handle);
foreach ($files as $file) {
echo $file."<br>";
}
|
![]() |
| Thread Tools | |
| Display Modes | |
|
|