I am trying to winzip a file with php. Does know how to do this I am having trouble with it in PHP. I know php can zip files, but I also have a batch file that zips files the way I want. Accomplishing this task either way works for me. Here is my deal, I have a file name VABCBS## the ## are incremented daily from 01-99 then reset to 01. I can get the file name and all of that, that is not a problem. I just cannot figure out how to zip the file. Also, I have some other batch files I would like to run, they are in the same directory as my php files. For some reason however the exec() function will not work. Let's say I have test.bat in the same folder as all of my php files. When I run
if(exec('test.bat')){
echo"file ran";
}//if
else{
echo"file not ran";
}//else
I always get the false. Anyone know why? Thanks in advance,