Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View

I would like to have the user upload a file to the server.  How do I:

(a) Implement a "browse" option for his directory structure to select the
(b) do the upload?

Side topic:  How do I easily protect against viruses in the file?



Re: Uploading

Shelly wrote:
Quoted text here. Click to load it

Did you read this section in the online PHP manual?


Re: Uploading

Quoted text here. Click to load it

No, I didn't.  Thanks for the pointer.


Re: Uploading

PHP Classes has a number of solutions for this that make life easy.

http://www.phpclasses.org /

Search for upload.

Here's a couple...

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.

Shelly wrote:
Quoted text here. Click to load it

Site Timeline