摘要:
$a = '/a/b/c/d/e.php'; $b = '/a/b/12/34/c.php'; function getRelativePath($a, $b) { $returnPath = array(dirname($b)); $arrA = explode('/', $... 阅读全文
摘要:
function traverse_scandir($dir) { $files = array(); if ($handle = opendir($dir)) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file !="..") { ... 阅读全文