摘要: $a = '/a/b/c/d/e.php'; $b = '/a/b/12/34/c.php'; function getRelativePath($a, $b) { $returnPath = array(dirname($b)); $arrA = explode('/', $... 阅读全文
posted @ 2011-09-21 14:17 末世 阅读(104) 评论(0) 推荐(0) 编辑
摘要: function traverse_scandir($dir) { $files = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file !="..") { ... 阅读全文
posted @ 2011-09-21 11:40 末世 阅读(105) 评论(0) 推荐(0) 编辑