| | |
Reading file names from a folder
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
![]() |
PHP Syntax (Toggle Plain Text)
<?php $dir = "."; $dh = opendir($dir); while (($file = readdir($dh)) !== false) { echo "<A HREF=\"$file\">$file</A><BR>\n"; } closedir($dh); ?>
![]() |
Similar Threads
- Extracting folder information (C)
- First year assigment on reading file, sorting and outputting invoice (C++)
- How to get Directory and File names (C++)
- Error Message Concerning Reading File From A Drive (C++)
- how to read file names from a folder (C++)
- reading a file into code (Java)
- Turn Off File Names in Thumbnail View (Windows tips 'n' tweaks)
Other Threads in the PHP Forum
- Previous Thread: regular expression
- Next Thread: PHP Help - Display forum online and total members on main page
| Thread Tools | Search this Thread |
Tag cloud for PHP
.htaccess access ajax apache api array autosuggest beginner binary broken cakephp checkbox class cms code cron curl database date directory display download dynamic echo email emptydisplayvalue error explodefunction file files folder form forms function functions google hack href htaccess html image include insert integration ip java javascript joomla keywords limit link login loop mail menu methods mlm mod_rewrite multiple mysql oop parse paypal pdf php problem query radio random recursion regex remote script search searchbox select server sessions sms soap source space speed sql structure syntax system table tutorial update upload url validation validator variable video web website xml youtube






