[H-GEN] finding which user executes a script

Steven Lawrance stl at koffein.net
Wed May 14 09:17:56 EDT 2003


[ Humbug *General* list - semi-serious discussions about Humbug and     ]
[ Unix-related topics. Posts from non-subscribed addresses will vanish. ]

Jason Parker-Burlingham <jasonp at uq.net.au> (14 May 2003 22:06 +1000):
> "Greg Fairbrother" <greg at greg.hm> writes:
> > Sorry if this is a dum question, but how do I find out what user is
> > executing a php script, It's to do with my previous post about php and file
> > uploading,
> 
> My advice would be to write a small PHP script that prints a message
> saying "this script was run by <...>" where the brackets are replaced
> by the result of whichever function you call in PHP to find out the
> userid of the process.

What I did to achieve a similar thing was to simply write the uploaded
file to /tmp/<something> and look at it from the shell.

-- 
Steven Lawrance
www.koffein.net

--
* This is list (humbug) general handled by majordomo at lists.humbug.org.au .
* Postings to this list are only accepted from subscribed addresses of
* lists 'general' or 'general-post'.  See http://www.humbug.org.au/



More information about the General mailing list