PHP running Stuffit command line

Zimbop

Registered
I've installed the command line tool from Stuffit Deluxe 7 and it works fine from the terminal. I can get PHP to operate tar and gzip using shell_exec() but I can't make it operate stuffit from the command line, and would appreciate any ideas anyone may have for how to crack the problem.

Please follow this link to see my existing code ...

Link to existing PHP Source code

So far the script successfully tarballs and gzips any directories in the /in/ directory and then moves the archive to the /out/ directory, the original (unprocessed) files are then removed.

The "stuff" command line functions stubbornly refuse to work however.

Anyone have any ideas?
 
Have you tried specifying the complete path to the "stuff" command? PHP runs as the Apache user (www:www) and this user's shell may not include the path to the "stuff" command.
 
Back
Top