 |
|
|  |
| include()용 웹경로 - > 상대경로 변환 함수 |
|
|
 |
15년 전 |
function path_root ( $path = '') {
if ( $path == '' ) {
$path = $_SERVER['PHP_SELF'];
}
$path_dirname = dirname($path);
$path_depth = substr_count($path_dirname, '/');
return str_repeat('../', $path_depth);
}
|
|
추천 : 826 |
추천
목록
|
|
|  |
|