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
Try doing this
';
print_r(array($HTTP_SERVER_VARS,$HTTP_ENV_VARS));
echo '';
?>
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 home running php
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 Mes
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
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 run
5 matches
Mail list logo