reset and begin
1/21/2010

đọc file trong folder

<?php
$dir='images'; // đường dẫn or folder
$mang=  array();
$i=0;
if ($handle = opendir($dir)) {
while (false !== ($file = readdir($handle))) { //đọc file dùng hàm readdir
if ($file != "." && $file != "..") {
//   echo "$file\n";
$mang[$i]=$file;
$i+=1;
}
}
closedir($handle);
}


?>

Bloger Comments
G+ Comments
Comments FaceBook

No comments:

List

Profiles Information


About me : Nothing is 1 vài thứ - 1985

Places I've Lived : I Hà Nội

Home Page : http://www.shimivn.blogspot.com/

Think : 1:1000000000

Languages spoken : Vietnamese,English.

Mobile : sony C2305

dell : i3-Ram 3GB- HDD 250GB .