BO-BLOG 备份 插件

原来作了个简单的备份PHP。
Bo-Blog的修改记录和建议2
http://www.yippeesoft.com/blog/p/boblog2_true.php

以前网络速度还可以,直接FTP下来,最近一段时间网络速度又不行了,再次运行PHP,结果发现出错了

Fatal error: Allowed memory size of 10485760 bytes exhausted (tried to allocate 3081216 bytes)

可能文件太多了,开辟内存太多,受到服务器商的限制。

又想办法,所以就找了一些资料

讲解插件中心 http://www.bo-blog.com/p/plugin.php

提醒大家注意及时备份数据
http://www.bo-blog.com/index.php?job=art&articleid=a_20050611_205828
备份数据的时候,除了程序自动生成的备份文件夹以外,还请通过FTP手动下载 p tblog up gallery 这几个文件夹下的内容!

所以就备份这几个目录 文本目录 数据目录 p tblog  gallery ,没有备份 up 目录,怕太大个了。

不过调试过程中出现,
Fatal error: Maximum execution time of 10 seconds exceeded in blog/plugin/ www.yippeesoft.com /zip.inc.php on line 176
修改了代码之后OK了,好像是因为如果连续用一个 NEW ZIP 压缩,那么它会把前面一个的FILES也加入到后面一个,非常奇怪。

[hide]http://www.yippeesoft.com/blog/index.php?job=ShengFang [/hide]

不过受到插件限制太厉害了,我想了一阵才把 GET 参数传递过去,可是本来还想可以自行选择哪几个生成,哪几个删除、下载的,可是不知道怎么POST了。还是改为自行一个页面算了?

if ($_GET["act"]=="del")
  &leftsign;
   if (file_exists($path."plugin/ www.yippeesoft.com /dirblog.zip"))
    unlink($path."plugin/ www.yippeesoft.com /dirblog.zip");

if (isset($_GET["act"])==false)
  &leftsign;
   #echo "The file show";
   $zipp="http://www.yippeesoft.com/blog/index.php?job= www.ShengFang.org"."&act=zip";
   $showg="<a href=$zipp >压缩</a>"; 
  &rightsign;

if($_GET["act"]=="zip")
  &leftsign;
   #echo "The file zip";
   
   $files=array();
   $files=list_directory($path.$dirblog) ;
   
   #echo $httppath;
   $z1 = new PHPZip();
   $z1-> Zip($files, $path."plugin/ www.yippeesoft.com /dirblog.zip");
   $dirblog=$httppath."plugin/ www.yippeesoft.com /dirblog.zip";
   #<a href=$dirblog target=\’_blank\’>文章</a>
   $dell="http://www.yippeesoft.com/blog/index.php?job= www.yippeesoft.com "."&act=del";
   #print_r($_GET);
   $showg="<a href=$dirblog >文章</a> ";

历史博文

标签:, , , ,
十一月 23, 2005 at 11:12 上午 by yippee 1,028 次
Category: Soft
Tags: , , , ,