Juan
Juan

Reputation: 2103

Create ODT file using ZipArchive

I'm trying to create odt file of the files:

enter image description here

using ZipArchive. How I will be able to reproduce this linux command

 zip -r ../zip.odt mimetype *

using ZipArchive in php in Windows?

Upvotes: 1

Views: 288

Answers (1)

dotancohen
dotancohen

Reputation: 31471

Use the PHP exec command to run arbitrary code.

exec("zip -r ../zip.odt mimetype *");

Upvotes: 2

Related Questions