/ Published in: PHP
See the contents within a directory and print them out.
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 />"; } } }