Build Tar file from directory in PHP without exec/passthru

前端 未结 4 941
面向向阳花
面向向阳花 2021-01-02 06:19

So I have a client who\'s current host does not allow me to use tar via exec()/passthru()/ect and I need to backup the site periodicly and programmaticly so is there a solut

4条回答
  •  遥遥无期
    2021-01-02 07:17

    At http://pear.php.net/package/Archive_Tar you can donload the PEAR tar package and use it like this to create the archive:

    create($files))
     {
        //Sucess
     }
    else
     {
        //Fail
     }
    ?>
    

提交回复
热议问题