How to capture domain to variable?

Discussion in 'PHP' started by dwest, Dec 23, 2006.

  1. #1
    In my script,
    $filepath = $uploaddir.'/'.$_FILES['pdfu_file']['name'] captures the directory and file name of a file which was just uploaded.

    I need to capture the domain, say "http://mydomain.com" and concatenate it to $filepath.

    How???

    Thanks!
     
    dwest, Dec 23, 2006 IP
  2. dwest

    dwest Peon

    Messages:
    38
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Disregard.
    I got the site url from the variables stored in the database.
    Thanks!
     
    dwest, Dec 23, 2006 IP