ZIP File error.
Posted: Thu Mar 09, 2006 1:14 am
Hai guys....need ur expert help. i have coded for the php page to zip automatically. but im facing this problem. its just like 1% of error only be4 im successfull. pls help me. i will paste the code and the error msg below. thanks alot guys. pls reply me soon.
<?php
include("include/function.php");
include("include/required.php");
$zipTest = new zipfile();
$zipfile->add_dir("/");
$zipfile->add_file($rootdir."Kodak_all_repair_jobs-". date(Ymd).".xls";
$zipfile->add_file($rootdir."Kodak_backorder-". date(Ymd).".xls";
$filename = "[KODAK]DAILY_REPORT(". date(Ymd) .").zip";
$fd = fopen ($filename, "wb");
$out = fwrite ($fd, $zipfile -> file());
fclose ($fd);
?>
error msg.
Parse error: parse error, unexpected ';' in C:\Inetpub\wwwroot\webreport\kodak_test\ziploct.php on line 10
<?php
include("include/function.php");
include("include/required.php");
$zipTest = new zipfile();
$zipfile->add_dir("/");
$zipfile->add_file($rootdir."Kodak_all_repair_jobs-". date(Ymd).".xls";
$zipfile->add_file($rootdir."Kodak_backorder-". date(Ymd).".xls";
$filename = "[KODAK]DAILY_REPORT(". date(Ymd) .").zip";
$fd = fopen ($filename, "wb");
$out = fwrite ($fd, $zipfile -> file());
fclose ($fd);
?>
error msg.
Parse error: parse error, unexpected ';' in C:\Inetpub\wwwroot\webreport\kodak_test\ziploct.php on line 10