Categories > [old] TbsOoo & TinyDoc >

$OOo->SetZipBinary

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Thomas
Date: 2008-04-09
Time: 23:42

$OOo->SetZipBinary

Hello!

I've installed TBS with OO and tried the script from the tutorial on my web site. When I use

$OOo->SetZipBinary('/usr/bin/zip');
$OOo->SetUnzipBinary('/usr/bin/unzip');

the document is created, but the variable [var.x] is not replaced by "Hello world". That seems to be the same problem as mentioned in http://www.tinybutstrong.com/forum.php?msg_id=7275

So, I wonder what to write in to the ZIP and UNZIP paths. Referring to my provider, ZIP is in /usr/bin/zip. But when I use the code

$OOo->SetZipBinary('/usr/bin/zip');
$OOo->SetUnzipBinary('/usr/bin/unzip');

I do not get a file at all, rather an error message like "TinyButStrong Error (LoadXmlFromDoc method): File not found : tmp/7984cd65b62f71034ad97ddb9e8f1720/content.xml".

Sysinfo tells me the following paths:

gzip    /usr/bin/gzip
gunzip    /usr/bin/gunzip

However,

$OOo->SetZipBinary('/usr/bin/gzip');
$OOo->SetUnzipBinary('/usr/bin/gunzip');

doesn't work either.

My script is located in http://my-domain.de/programme/tbsooo/hello.php

So, what do I have to use as ZIP paths?

Thanks a lot in advance,

Thomas.
By: Thomas
Date: 2008-04-09
Time: 23:45

Re: $OOo->SetZipBinary

Sorry, I accidentally copied the wring bit of code in the first excerpt. The following is correct:

I've installed TBS with OO and tried the script from the tutorial on my web site. When I use

$OOo->SetZipBinary('zip');
$OOo->SetUnzipBinary('unzip');

the document is created, but the variable [var.x] is not replaced by "Hello world". That seems to be the same problem as mentioned in http://www.tinybutstrong.com/forum.php?msg_id=7275