Linker IT Software
Google
Web www.oraxcel.com
menubar-top-links menubar-top-rechts
Home Help Search Login
Welcome, Guest. Please Login.
SQL*XL: Database to Excel bridge litLIB: Excel power functions pack ExcelLock: Locking and securing your valuable Excel spreadsheets encOffice: Protect your Excel file easy and safe encOffice: Protect your Excel file easy and safe
Pages: 1
Create file listing in PHP (Read 3406 times)
Gerrit-Jan Linker
YaBB Administrator
*****




Posts: 75
Create file listing in PHP
06.11.07 at 12:13:22
 
Create file listing in PHP
 
Using the simpel PHP code below you can display the contents (files) of a particular directory.
 
<?php
 
$strPath = '/var/username/mydir';
$ptrDir = opendir($strPath);
 
while ( ($strFile = readdir($ptrDir)) !== false)
{
   print $strFile  . '<br>';
}
 
?>
Back to top
 
« Last Edit: 06.11.07 at 12:15:12 by Gerrit-Jan Linker »  

Gerrit-Jan Linker
Linker IT Software
Email WWW Gerrit-Jan Linker   IP Logged
Pages: 1