I'm using gzip with PHP to zip up some log files. My development machine is windows, and as you all know, a windows the path are sometimes separated by a space which makes it difficult because I have to wrap everything in quotes to get to the logs.
I'd like to keep my code as clean as I can and was wondering if there is a compression utility that will take the same file to be compressed and zip that file instead of creating a new, compressed file. This way, I wouldn't have to run a separate command to delete the uncompressed file afterwards.
Just for clarification, I'm not using shell_exec to zip these, but instead, PHPs internal functions. "gzwrite" etc.