PDA

View Full Version : $_server containing directory?



bluewalrus
10-21-2009, 04:45 PM
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.


$temp_name = $_SERVER['HTTP_REFERER'] . $_FILES['file']['tmp_name'][$a] . "/" . $_FILES['file']['name'][$a];


Outputs as:
http://www.domain.net/TEST/test/upload.php/tmp/php9TEDGC/filename.jpg