Forum Moderators: coopster
The problem is, I can't find out if PHP will allow you to make a .tar.gz file out of directories. Is this possible, and if so, how is it done?
Thanks,
Matthew
[php.net ]
There are (as far as I'm aware) no functions that would allow you to create tar files with PHP. However, if you're on a Unix box (or a windows box with a tar binary), you can use the system [php.net] function to execute any command that the system understands, including tar.
Be Very Careful using the system function with values that aren't hard coded. If you don't validate your user input, someone could wry a whole lot of havoc on your (or you host's) machine.