FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Having trouble writing/copying/renaming file to sub-directory
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Having trouble writing/copying/renaming file to sub-directory [message #170974 is a reply to message #170968] Mon, 13 December 2010 12:12 Go to previous messageGo to previous message
Jerry Stuckle is currently offline  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
==================
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: How to generate cryptographically-secure random big-integers?
Next Topic: PHP Guestbook list on PHPKode.com
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 24 21:22:33 GMT 2024

Total time taken to generate the page: 0.03915 seconds