Categories > [old] TbsOoo & TinyDoc >

Info-Zip problems causing File not found error

The forum is closed. Please use Stack Overflow for submitting new questions. Use tags: tinybutstrong , opentbs
By: Guy Morel
Date: 2007-04-02
Time: 08:10

Info-Zip problems causing File not found error

Hi

I really tried hard to search through this forum for answers to my questions, but found the language barrier a bit difficult. Google translator helped a bit, but I'm still stuck with an error that reads:

TinyButStrong Error (LoadXmlFromDoc method): File not found : [My Path]/content.xml

My (WAMP) setup is:

PHP        4.3.13
TBS        2.05.8
TBSOOo  0.7.9
Info-Zip  5.52

I had many other problems with Info-zip, but this link really helped a lot. Seems as if Info-zip has been updated to work slightly differently.
http://gallery.menalto.com/node/7545

At the moment, I have Info-zip installed and working (running in the command line works), but when I call it from PHP, no response. I output the exact line that is to be executed, and copy/paste it into CMD and it works! Also a note for people having trouble - I had to quote the file path as my file path has spaces : "C:/Program Files/".

Another note on debug- I var_dumped the array that exec should populate on execution - empty.

Anyone had similar problems?

My guess is that apache somehow doesnt have rights to execute this file.

g
By: Guy Morel
Date: 2007-04-02
Time: 10:38

Re: Info-Zip problems causing File not found error

Solution:

I found that the absolute path did not work in exec, I used the relative path and it worked like a bomb

g