unzip openDocument in safe mode

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



I try to unzip openDocument files with pclzip.
At my laptop this is no big problem, but the target server has "safe
mode" switched on (no way to change that).

The problem with safe mode and unzipping openDocument ist, that a
openDocument zip file contains directories. It is not possible to write
to directory owned by webserver uid (because of safe mode)

My Project:
I try to extract the "content.xml" from openDocument, change it and
store it back to the openDocument (zip) file.

Question:
Is it possible to extract a single file from a zip file?
Is it possible to replace a single file in a zip file?

I need something  like:

$contentString=extractFromZip("xy.zip","content.xml")
... $contentString will be changed ...
replaceFileInZip("xy.zip","content.xml",$contentString);


thanks

Bernhard

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux