X-Git-Url: http://git.ithinksw.org/extjs.git/blobdiff_plain/0494b8d9b9bb03ab6c22b34dae81261e3cd7e3e6..7a654f8d43fdb43d78b63d90528bed6e86b608cc:/examples/grid/get-images.php diff --git a/examples/grid/get-images.php b/examples/grid/get-images.php new file mode 100644 index 00000000..e84aaa35 --- /dev/null +++ b/examples/grid/get-images.php @@ -0,0 +1,14 @@ +read()){ + if(!preg_match('/\.(jpg|gif|png)$/', $name)) continue; + $size = filesize($dir.$name); + $lastmod = filemtime($dir.$name)*1000; + $images[] = array('name'=>$name, 'size'=>$size, + 'lastmod'=>$lastmod, 'url'=>$dir.$name); +} +$d->close(); +$o = array('images'=>$images); +echo json_encode($o);