A strange thing related to Apache

Discussion in 'Apache' started by zcj193, Dec 31, 2009.

  1. #1
    Hi,

    I encounter a strange thing related to Apache. I'm a software engineer, and develop a network application with Apache + MySql + PHP recently. Actually it's a very simple apache implementation, the main function is that users upload file and the file will be stored to some place in linux. But I found the files will disappear about three days later after these files were loaded. I have checked that the owner of these uploaded files is apache in linux, so I doubt that whether these files expired at three days, which is a attribute of Apache in this situation. So I need help, thanks a lot ! :confused:



    Robert
     
    zcj193, Dec 31, 2009 IP
  2. tolra

    tolra Active Member

    Messages:
    515
    Likes Received:
    36
    Best Answers:
    1
    Trophy Points:
    80
    #2
    After you upload the file do you copy it somewhere or do you rely on the file that is returned to you in $FILES, if you don't copy the file then it's a temporary file and will vanish at some point. Have a look at http://php.net/manual/en/function.move-uploaded-file.php

    If you are moving the files to a storage folder then check to see if there's a cron job running which cleans that folder or it's parents.
     
    tolra, Dec 31, 2009 IP