Hi everybody!
I could use a little explaination here!
I spent quite a few hrs yesterday evening coding
the script behind a form to upload a picture, and
I think it does what it is supposed to do, but I'm
not too happy with my understanding of the features
available in php to deal with this issue.
Question #1
If the field in the form is not empty but the file
does not exist on the client's hard drive, the variable
$_FILES[filename][error] and $_FILES[filename][size]
are both set to zero. But how do I discern between a
file that is not existant and a transfer that for some
strange reason has not yet written anything on the
server side?
Question #2
Once the user click on the submit button, the transfer
seems to start right away, and the next page is shown
only when the transfer actually ends.
Is there any way to avoid this? I'd like instead to
show the first part of the page, wait for the transfer
to finish, and only then continue with the generation
of the rest of the page. Is this possible?
Thanks for your help.
Manu