Upload images outside web root

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Upload images outside web root

    I want to upload/store images to a folder that is located outside of my web directory. Is it possible how? If it is what would be the image path and how to retrive images to web page?
    any expert knows share hare. thanks.
    Wait...
    sigpic

    #2
    PHP Code:
    if (move_uploaded_file($_FILES['upload']['tmp_name'], "../{$_FILES['upload']['name']}"))
    {
    // mysql ... 
    // print something

    if ur upload is like : site.com/upload.php
    else if : site.com/dir/upload.php
    ../../filename
    Last edited by i0nutzxp; 20.10.10, 06:11.
    <?php unlink('World/Europe/Romania.country'); ?>

    Comment

    Working...
    X