Re: complicated but fun, please help.
| From: | Erik Price | Date: | Mon, 17 Mar 2003 21:55:52 +0000 |
| Subject: | Re: complicated but fun, please help. | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-140047@lists.php.net to get a copy of this message | ||
Daniel McCullough wrote:
Where I am having problems at is when they need to update the poppasswd, which is a IMAP or QMAIL file. Plesk has files that will update the system, but it seems that I using the exec() and system() I can access those pl files. From the command prompt it works fine, html/php file doesnt work. Any thoughts? I would really appreciate the help, I'm doing this as a favor and would like to clear this off my plate.You probably are logged into the command prompt as a different user than what the PHP binary runs as. If the PHP binary runs as a user named "apache", and you log in as "dmcullough" or "root", and the commands you are trying to execute are restricted only to being run by "dmcullough" or a group that "dmcullough" is in but "apache" is not, then PHP won't run them. I'm assuming that you are using the system() or exec() commands, your email is a little difficult to understand in that respect... sorry. Erik