Re: [PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread Jason Barnett
John Yu wrote: Runas has a /savecred to load a saved credential, maybe that will help? I did try that before. When I was in the shell I could use runas /savecred with a php script and only had to input the password once. However, I couldn't get this to work within PHP when using exec(). I thin

RE: [PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread John Yu
Runas has a /savecred to load a saved credential, maybe that will help? -Original Message- From: Jason Barnett [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 04, 2004 10:41 PM To: [EMAIL PROTECTED] Subject: [PHP-WIN] Re: Running PHP scripts as a different user De Greef SéBastien wrote

[PHP-WIN] Re: Running PHP scripts as a different user

2004-05-04 Thread Jason Barnett
De Greef SéBastien wrote: why don't you try runas in the exec() function ? runas requires you to enter the password credentials after you've executed the command. I'm not aware of how to pass information like that while PHP is trying to use exec(), it just hangs waiting for input that never com

[PHP-WIN] Re: Running PHP scripts as a different user

2004-04-30 Thread De Greef Sébastien
why don't you try runas in the exec() function ? "Jason Barnett" <[EMAIL PROTECTED]> a écrit dans le message news: [EMAIL PROTECTED] > It seems that several people have run into a problem where PHP did not > have permission to access certain folders / files in Windows. I have > two solutions that