Re: complicated but fun, please help.

From: Date: Tue, 18 Mar 2003 01:33:46 +0000
Subject: Re: complicated but fun, please help.
Groups: php.general 
Request: Send a blank email to php-general+get-140066@lists.php.net to get a copy of this message
Yes sorry for not being clear. I am trying to use exec() and system(). I guess I'm trying to see if there is another way to do it, like write to a file and have acron job run every minute or so, or if there is some way to make it seem like I am doing this with the right permissions.
From: Erik Price <eprice@ptc.com> To: Daniel McCullough <daniel_mccullough@hotmail.com> CC: php-general@lists.php.net Subject: Re: [PHP] complicated but fun, please help. Date: Mon, 17 Mar 2003 16:55:52 -0500 MIME-Version: 1.0 Received: from mxrelay.ptc.com ([12.11.148.30]) by mc5-f40.law1.hotmail.com with Microsoft SMTPSVC(5.0.2195.5600); Mon, 17 Mar 2003 13:58:28 -0800 Received: from HQ-EXFE4.ptcnet.ptc.com (localhost [127.0.0.1])by mxrelay.ptc.com (8.9.0/8.9.0) with ESMTP id QAA22956;Mon, 17 Mar 2003 16:58:27 -0500 (EST) Received: from hq-mail1.ptcnet.ptc.com ([132.253.201.69]) by HQ-EXFE4.ptcnet.ptc.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 17 Mar 2003 16:56:11 -0500 Received: from ptc.com ([132.253.96.61]) by hq-mail1.ptcnet.ptc.com with Microsoft SMTPSVC(5.0.2195.5329); Mon, 17 Mar 2003 16:56:11 -0500 X-Message-Info: JGTYoYF78jEHjJx36Oi8+Q1OJDRSDidP Message-ID: <3E764468.5090105@ptc.com> User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.0; en-US; rv:1.2.1) Gecko/20021130 X-Accept-Language: en-us, en References: <BAY1-F41rK6UtEnUyR50003e7a6@hotmail.com> In-Reply-To: <BAY1-F41rK6UtEnUyR50003e7a6@hotmail.com> X-OriginalArrivalTime: 17 Mar 2003 21:56:11.0113 (UTC) FILETIME=[059A0D90:01C2ECD0] Return-Path: eprice@ptc.com 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
_________________________________________________________________ Help STOP SPAM with the new MSN 8 and get 2 months FREE* http://join.msn.com/?page=features/junkmail

« previous php.general (#140066) next »