1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

A PHP script to unzip files with file overwriting ?

Discussion in 'XenForo Questions and Support' started by sylwester, Apr 5, 2011.

  1. sylwester

    sylwester Member

  2. Kier

    Kier XenForo Developer Staff Member

    That script represents a serious security risk, as it requires that the PHP scripts are writable by the web server. I could keep you up all night with horror stories of what is possible in that situation.
    Onimua likes this.
  3. steven s

    steven s Well-Known Member

    I upload the zipped file to root.
    Uncompress it on my server. I do it with the File Manager in cPanel.
    Select all the files in /upload directory. Move /public_html

    Now I think I'll update that other forum.
  4. sylwester

    sylwester Member

    and you think that gonna replace all files ?
  5. steven s

    steven s Well-Known Member

    It does every time.
    I use that method for XF and vB.

    Add: I also make a quick backup by selecting all files and creating a zip using File Manager in cPanel.
    sylwester likes this.
  6. sylwester

    sylwester Member

    Thank You for that
    ill try that way

Share This Page