Show the actual PHP code you are using to execute it.
rubberman
Posting Virtuoso
1,559 posts since Mar 2010
Reputation Points: 277
Solved Threads: 178
Why not use system() command instead of exec() to execute the CGI program? IE:
system('/Applications/MAMP/cgi-bin/rotate.cgi ../logs/access.log');
Also, I notice the '?' after the command string, and no space before the '../logs/access.log' part. Possibly there is an error here? Finally, the bkfile variable is using '../../logs/access.log' instead of '../logs/access.log'. Was this intentional, or another typo?
rubberman
Posting Virtuoso
1,559 posts since Mar 2010
Reputation Points: 277
Solved Threads: 178