![]() |
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:
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. |
Re: Random: PHP RAR Archive Updating
Try disabling firewall and virus protections.
|
Re: Random: PHP RAR Archive Updating
One of the first things I would do is have the PHP do "env" and "set" to a file so you can view all of the settings of that user.
Does rar have a "verbose" switch? Im trying to remember something about update using a temp something to unpack in order to make a comparison. I tihnk a fix was to use the -w switch to assign a work directory. That may be really old fuzzy memory. I will try to google something |
Re: Random: PHP RAR Archive Updating
I have nothing useful to suggest, but is this some sort of groundwork for a PBW successor?
|
Re: Random: PHP RAR Archive Updating
The suggestion for a -w switch lead me on the right path. I added something under /tmp for it, and it then tried to add the first file. Unfortunately, it added the file in a corrupt manner. Then I stumbled across this little gem in /usr/share/doc/rar/rar.txt:
Quote:
|
All times are GMT -4. The time now is 01:18 PM. |
Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©1999 - 2025, Shrapnel Games, Inc. - All Rights Reserved.