Re: Having trouble writing/copying/renaming file to sub-directory [message #170974 is a reply to message #170968] |
Mon, 13 December 2010 12:12 |
Jerry Stuckle
Messages: 2598 Registered: September 2010
Karma:
|
Senior Member |
|
|
On 12/13/2010 1:28 AM, Robert Maas, http://tinyurl.com/uh3t wrote:
>> From: Jerry Stuckle<jstuck...@attglobal.net>
>> What's the userid php is running under?
>
> Trying to find that info...
>
> var_dump($_ENV);
> array(5) { ["PATH"]=> string(28) "/usr/local/bin:/usr/bin:/bin"
> ["PWD"]=> string(1) "/"
> ["LANG"]=> string(1) "C"
> ["SHLVL"]=> string(1) "1"
> ["_"]=> string(17) "/usr/sbin/apache2" }
> That didn't tell me anything useful.
>
> $uid = posix_getuid(); var_dump($uid);
> int(2001)
> Is that what you wanted to know?
You need to learn about Linux administration and permissions.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex(at)attglobal(dot)net
==================
|
|
|