I use the same to see if a file was uploaded, may not be the best, but it
works.
a simple class that I include works just as well as yours but it gives 4
decimal places on the seconds. one simple line.
$debug->time();
$debug->time('finnishing while statement');
start = mtime();
}
function
Hi,
I wondered if anyone knew what would be the better method to use to see if a file has
been sent/uploaded?
method 1:
if ($HTTP_POST_FILES['file']['name'] != "none" && $HTTP_POST_FILES['file'] != "") {
method 2:
if (@$fp = fopen($HTTP_POST_FILES['file']['tmp_name'],"r")) {
method 2 seems to
2 matches
Mail list logo