$owner = fileowner ($file);

returns a string containing the owner or false. see
http://www.php.net/manual/en/ref.filesystem.php

-- Stewart
 
--- Bogdan Stancescu <[EMAIL PROTECTED]> wrote:
> Hello all!
> 
> How do I find out if a file was actually uploaded /without/ using 
> is_uploaded_file()?
> 
> My first though is that I should use fileowner() on the file and see
> if 
> it's the same as the user who runs PHP (Apache) - but how do I find
> that 
> out? I don't want to use exec("id -u") either because the syntax may
> be 
> different for distinct systems and I'd like to avoid system calls if 
> possible.
> 
> I'm open to any suggestions to solve the original problem - not 
> necessarily using UID's.
> 
> Thanks!
> 
> Bogdan
> 
> 
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 


__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - Send FREE e-cards for every occasion!
http://greetings.yahoo.com

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to