Re: [PHP] complicated but fun, please help.

2003-03-18 Thread Erik Price


Daniel McCullough wrote:
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.
That sounds like a good plan.



Erik

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] complicated but fun, please help.

2003-03-17 Thread Erik Price


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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] complicated but fun, please help.

2003-03-17 Thread Daniel McCullough
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 [EMAIL PROTECTED]
To: Daniel McCullough [EMAIL PROTECTED]
CC: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
In-Reply-To: [EMAIL PROTECTED]
X-OriginalArrivalTime: 17 Mar 2003 21:56:11.0113 (UTC) 
FILETIME=[059A0D90:01C2ECD0]
Return-Path: [EMAIL PROTECTED]



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

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php