Friday, August 22, 2008

How to zip the file or folder using exec command in php

here u can find the solution for How to zip the file or folder using exec command in php?

echo $cmd="zip -r ziffilename.zip foldername";
echo "<br>";
exec($cmd,$out,$res);
if($res==0)
{
echo "fine";
}
else
{
echo "pblm";
}

No comments:

Post a Comment