SitePoint Sponsor

User Tag List

Results 1 to 2 of 2

Hybrid View

  1. #1
    Error 404: Life not found silver trophybronze trophy
    Join Date
    Dec 2007
    Location
    UK Nr Manchester
    Posts
    3,460
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Using PHP to unzip folder on a remote web server

    I'm having a massive problem getting a Joomla site to work at root level on a site I'm working on. It works in the subfolder but I'm getting a zilliion errors when I try to move it to root level. The latest is "Fatal error: Class 'JException' not found"

    So, what I'm trying to do is upload a zipped backup of the site to the root level and unzip it there because I think the problem is being caused by FTP file corruptions, but I can't find any options to do that in my CP (I'm with streamlinenet.co.uk) and the scripts I've found that do it are a little cofusing for someone not versed in PHP like me.

    Can someone recommend an easy to follow technique for unzipping on remote servers?

    Thanks, Rich
    It's 530 people, but do you really get it?
    ImgWebDesign - Web design in Buxton, High Peak, Derbyshire UK.

  2. #2
    SitePoint Guru bronze trophy
    Join Date
    Dec 2003
    Location
    Poland
    Posts
    930
    Mentioned
    7 Post(s)
    Tagged
    0 Thread(s)
    PHP has zip functions which are easy to use. Have a look at the documentation - there you will find examples of unzipping archives to a given folder.


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
  •