Advanced Search

Results 1 to 1 of 1

Thread: $_server containing directory?

  1. #1
    Join Date
    May 2007
    Location
    Boston,ma
    Posts
    2,127
    Thanks
    173
    Thanked 207 Times in 205 Posts

    Default $_server containing directory?

    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.

    PHP Code:
    $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
    Last edited by bluewalrus; 10-21-2009 at 04:46 PM. Reason: Tried to remove link, not live only sample

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •