Re: [PHP] Exec as user

2001-12-28 Thread charlesk
I tried echo %PATH% test.txt and both the webpage and the dos prompt echo the correct path information. This shows that a batch file executed by php can access the system vars. They have a diffence only in accessing the %USERNAME% variable. Could this be indicative that it is running as the

Re: [PHP] Exec as user

2001-12-27 Thread David Jackson
Charles --- As a general run on an Unix server httpd is run as user and group nobody. I have been looking through the docs and found no help on either finding which user the EXEC'ed commands run as, or how to specify which user they should run as. I tried exec, system, and passthru running

Re: [PHP] Exec as user

2001-12-27 Thread Jim Lucas [php]
I don't believe that the system variables are available to php. I work on *nix mostly, but I have a windows machine at home running php and I can't access any of my system var's. - Original Message - From: charlesk [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, December 27,

Re: [PHP] Exec as user

2001-12-27 Thread charlesk
I can access the username system var when the script is run from a command prompt. The problem lies when iis tells php to run it. I have the directory security turned on so IIS authenticates me before any scripts are run. So it should be running as me. Charles Killmer -- Original

Re: [PHP] Exec as user

2001-12-27 Thread Mike Eheler
Try doing this ? echo 'pre'; print_r(array($HTTP_SERVER_VARS,$HTTP_ENV_VARS)); echo '/pre'; ? And see if the information you want is in there anywhere. Mike I don't believe that the system variables are available to php. I work on *nix mostly, but I have a windows machine at