最贊回答 / 慕先生4263394
因為index.php在打開的的時候就會去執行代碼,顯然這兩個變量在未添加新文件的時候,是不存在的,所以分別做一個判斷就可以了,代碼如下【請看加粗部分】:<?phprequire_once 'dir.func.php';require_once 'file.func.php';require_once 'common.func.php';$path="file";$info=readDirectory($path);// print_r($info);if(isset($_REQUEST['act'...
2015-05-09