현재파일까지의 http:// 경로 구하기

<?
$tmp_dir = $_SERVER["SERVER_NAME"].$PHP_SELF;
$tmp_present_file = strrchr($tmp_dir, "/");
$length = strlen($tmp_present_file);
$document_path = substr($tmp_dir, 0, -$length);
?>

Press ESC to close