always make sure you restrict what can be uploaded though! only allow file
extensions that you know are safe! otherwise people might do nasty things to
your server!

-----Original Message-----
From: Jonathan Hilgeman [mailto:[EMAIL PROTECTED]]
Sent: 16 November 2001 16:29
To: 'Lilian Salazar'; [EMAIL PROTECTED]
Subject: RE: [PHP-DB] Upload


Hola Lilian,
You might want to check http://phpclasses.upperdesign.com and search for
"upload."

- BUT -

I have found it much easier and simpler to just to use my own code when
doing uploads. It is really simple, since most of the work is done by the
browser and the server programs. To add an upload function just create 2
pages:

-----------------------------------------------------------
page1.html      (Can be located anywhere, even on your desktop)
<FORM ENCTYPE="multipart/form-data" ACTION="http://www.mysite.com/page2.php";
METHOD="POST">
<INPUT TYPE="File" NAME="NewUpload">
<INPUT TYPE="Submit">
</FORM>
-----------------------------------------------------------


-----------------------------------------------------------
page2.php       (Should be at http://www.mysite.com/page2.php)
<?
copy($NewUpload, "/directory/to/put/uploaded/file/into/" . $NewUpload_name);
?>
-----------------------------------------------------------

- Jonathan

-----Original Message-----
From: Lilian Salazar [mailto:[EMAIL PROTECTED]]
Sent: Friday, November 16, 2001 8:09 AM
To: [EMAIL PROTECTED]
Subject: [PHP-DB] Upload


Hi,

  Exists some component that allows to do upload from archives to the
  Web server? Where it could find it? Somebody knows?
  The ideal would be that it served so much for Apache as for IIS. The
  Database is Oracle 8i
  Thank you very much.

-- 
Saludos,
 Lilian                          mailto:[EMAIL PROTECTED]


-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

---
Incoming mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/01
 

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.295 / Virus Database: 159 - Release Date: 01/11/01
 

-- 
PHP Database Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to