![]() |
|
|||||||
| Register | FAQ | Members List | Social Groups | Arcade | Dev Directory | HB Bank | Calendar | Search | Today's Posts | Mark Forums Read |
| PHP, ASP, JavaScript, Etc. / Programmers: For people looking for a PHP programmer. |
![]() |
|
|
LinkBack | Thread Tools | Display Modes |
|
|
#1 (permalink) |
|
New Hunter
Join Date: Dec 2007
Location: United Kingdom - Dorset - Bournemouth
Posts: 88
HB$ Balance: 5.00
![]() ![]() iTrader: (0)
|
You know with PHP and MySQL, you can list a load of data. Well, is it possible to do it with just PHP and a folder.
I need to list the items from a folder basicly, should I make a Database and store the data there?
__________________
<!-- I can type the entire Alphabet in 2.19 seconds --> /* (X/D)Html, Css, Javascript, Ajax, Xml (DTD), PHP, MySQL, E4X */ /* Learning C++ and German */ |
|
|
|
|
|
#2 (permalink) |
|
Field Master
|
There are commands to read a directory in PHP...
$dirname='/home/dir-to-read'; if ($handle = opendir($dirname)) { while (false !== ($filename = readdir($handle))) { echo($filename."\n"); } closedir($handle); } Would load and print a list on the page. Of course you'd probably want to do some formatting rather than just an echo. You can put whatever code you want there. Last edited by sunken; 04-03-2008 at 07:47 PM. |
|
|
|
![]() |
| Bookmarks |
| Thread Tools | |
| Display Modes | |
|
|