RE: [PHP] is_uploaded_file() emulation?

From: Date: Tue, 26 Feb 2002 21:27:49 +0000
Subject: RE: [PHP] is_uploaded_file() emulation?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-86316@lists.php.net to get a copy of this message
Create a tmp file with the script and get the owner/group from that My $.02 -----Original Message----- From: Bogdan Stancescu [mailto:mgv@fx.ro] Sent: Tuesday, February 26, 2002 1:23 PM To: php-general@lists.php.net Subject: [PHP] is_uploaded_file() emulation? 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

« previous php.general (#86316) next »