View Single Post
  #1  
Old January 27th, 2009, 02:47 AM
Fyron's Avatar

Fyron Fyron is offline
Shrapnel Fanatic
 
Join Date: Jul 2001
Location: Southern CA, USA
Posts: 18,394
Thanks: 0
Thanked 12 Times in 10 Posts
Fyron is an unknown quantity at this point
Default Random: PHP RAR Archive Updating

I'm trying to use the command line rar tool to update a RAR archive on debian, from a PHP script. I can successfully create new archives from my script. I can successfully run a RAR update command to add files to an archive from the shell, as the apache user. But whenever I try to run a RAR update system call from PHP, the RAR tool seems to be unable to work. All RAR outputs is:

Quote:
RAR 3.80 beta 3 ...

Updating archive /path/to/archive.rar
The archive in question is not solid. I cannot get it to contain new files with a "rar a" command or a "rar u", no matter what random switches I add. The baffling thing is that I can trivially su into the apache user and run the exact command I'm trying to run from PHP, and it works!

I also cannot seem to get 7z to update any archives from PHP. Same situation, where I can update them with the same command on the shell as apache user, and I can create new archives from PHP without problem.
Reply With Quote