image
image

|


Go Back   macosx.com > Design, Media, Programming & Scripting > Software Programming & Web Scripting

Reply
 
Thread Tools
  #1  
Old June 23rd, 2003, 07:45 AM
Registered User
 
Join Date: Aug 2001
Posts: 93
Thanks: 0
Thanked 0 Times in 0 Posts
Zimbop is on a distinguished road
PHP running Stuffit command line

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?
Reply With Quote
  #2  
Old June 24th, 2003, 04:48 AM
slur's Avatar
Geek / Hedonist
 
Join Date: Dec 2000
Location: Florence, MA
Posts: 542
Thanks: 0
Thanked 0 Times in 0 Posts
slur is on a distinguished road
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.
__________________
|
| slur was here
|

check out my creative music software
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
PHP / MySQL Nynaeve Mac OS X System & Mac Software 6 December 21st, 2005 03:59 PM
Problems with CRON running PHP scripts AGBlee1970 Unix & X11 3 July 11th, 2003 04:08 AM
PHP & mySQL revisited: Help needed MacLuv Design & Media 4 December 2nd, 2002 09:41 AM
Enabling PHP in 10.2 Client sixthring Mac OS X System & Mac Software 2 October 28th, 2002 12:48 PM
PHP + MySQL running but not ZLIB lashampoo Mac OS X System & Mac Software 2 October 8th, 2001 04:58 PM


All times are GMT -5. The time now is 04:46 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.