Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Uploading

0 views
Skip to first unread message

Shelly

unread,
May 30, 2005, 6:43:36 PM5/30/05
to
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
file?
(b) do the upload?

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

Thanks.

Shelly


Ken Robinson

unread,
May 30, 2005, 7:01:45 PM5/30/05
to

Did you read this section in the online PHP manual?
http://us2.php.net/manual/en/features.file-upload.php

Ken

Shelly

unread,
May 30, 2005, 7:07:09 PM5/30/05
to

"Ken Robinson" <kenr...@rbnsn.com> wrote in message
news:1117494105....@g47g2000cwa.googlegroups.com...

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

Shelly


crucialmoment

unread,
May 30, 2005, 8:04:10 PM5/30/05
to
PHP Classes has a number of solutions for this that make life easy.

http://www.phpclasses.org/

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.

0 new messages