RE: [PHP-DB] Upload

From: Date: Fri, 16 Nov 2001 16:36:59 +0000
Subject: RE: [PHP-DB] Upload
Groups: php.db 
Request: Send a blank email to php-db+get-14406@lists.php.net to get a copy of this message
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:JHilgeman@ecx.com] Sent: 16 November 2001 16:29 To: 'Lilian Salazar'; php-db@lists.php.net 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:lsalazar@auge.cl] Sent: Friday, November 16, 2001 8:09 AM To: php-db@lists.php.net 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:lsalazar@auge.cl -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net -- PHP Database Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-db-unsubscribe@lists.php.net For additional commands, e-mail: php-db-help@lists.php.net To contact the list administrators, e-mail: php-list-admin@lists.php.net --- 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

« previous php.db (#14406) next »