(a) Implement a "browse" option for his directory structure to select the
file?
(b) do the upload?
Side topic: How do I easily protect against viruses in the file?
Thanks.
Shelly
Did you read this section in the online PHP manual?
http://us2.php.net/manual/en/features.file-upload.php
Ken
No, I didn't. Thanks for the pointer.
Shelly
Search for upload.
Here's a couple...
http://www.phpclasses.org/browse/package/862.html
http://www.phpclasses.org/browse/package/1708.html
There are many others. Most include an example file or instructions in
the header of the class itself.
I'm not sure about the virus scan question in relation to php
development. I guess the first assumption would be that the server
itself would be responsible. If you are using a web hosting company,
you might ask them how they have their systems configured.