Is there a server request to get all directories up to one that a page is contained in? I'm trying to display the temporary address of where a file is being uploaded but it is displaying incorrectly because it is included the page it is on.
Outputs as:PHP Code:
$temp_name = $_SERVER['HTTP_REFERER'] . $_FILES['file']['tmp_name'][$a] . "/" . $_FILES['file']['name'][$a];