/ Published in: PHP
Prints out the contents of a directory.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
$dir = "."; echo "filename: {$filename}<br />" ; } //rewinddir($dir_handle) to start over } } echo "<hr />"; foreach( $dir_array as $file ){ echo "filename: {$file}<br />"; } } }