|
|
|
AppletFile from Infomentum:
http://www.infomentum.com/appletfile/
---
Syntax examples for file uploading
---- test.php3
<html>
<head>
<title>Appletfile uploads</title>
</head>
<body>
<APPLET CODE=FileUpload.class ARCHIVE=FileUpload.jar NAME=FileUpload
CODEBASE="/AppletFile/classes" WIDTH=420 HEIGHT=180 MAYSCRIPT>
<PARAM NAME="cabbase" VALUE="/AppletFile/classes/FileUploadIE3.cab">
<PARAM NAME="cabinets" VALUE="/AppletFile/classes/FileUpload.cab">
<PARAM NAME="directory" VALUE="C:\">
<PARAM NAME="maxfiles" VALUE="4">
<PARAM NAME="minfiles" VALUE="0">
<PARAM NAME="errorlimit" VALUE="1024000">
<param name="finishUrl" value="/result.php3">
</APPLET>
<FORM ENTYPE "multipart/form-data" ACTION="result.php3"
onSubmit="return document.FileUpload.submit(document,this,true)"
METHOD=POST>
<INPUT TYPE="hidden" NAME="MAX_FILE_SIZE" VALUE="10240000">
<INPUT TYPE="submit" VALUE="Upload">
</FORM>
</body>
</html>
---
Syntax for uploaded files:
--- result.php3
<html>
<head>
<title> Uploaded files </title>
</head>
<body>
<?
/* The userfile scheme doesn't use a php array[], */
/* so the files start out as separate FILE1, FILE2, */
/* FILE3, FILEn, variables. */
$fp = fopen ($FILE1, "r");
if (isset($FILE2)){ $fp2 = fopen($FILE2, "r");}
if (isset($FILE3)){ $fp3 = fopen($FILE3, "r");}
if (isset($FILE4)){ $fp4 = fopen($FILE4, "r");}
/* sample functions to display the uploaded files */
fpassthru($fp);
if (isset($fp2)){fpassthru($fp2);}
if (isset($fp3)){fpassthru($fp3);}
if (isset($fp4)){fpassthru($fp4);}
?>
Upload Complete.
</body>
</html>
|
|
| Random Image Display Categories : PHP, Filesystem, Graphics, HTML and PHP | | | How to let a user download a picture by clicking on it instead of needing to right click and Save-As. Categories : HTTP, PHP, HTML and PHP, Filesystem | | | upload function using PHP's FTP abilities. Categories : PHP, Filesystem, HTML and PHP | | | Opening and formatting text files into HTML on the fly- or HTML from templates. Categories : PHP, HTML and PHP, Filesystem | | | Handle multiple file upload Categories : Complete Programs, Filesystem, PHP, HTML and PHP | | | Directory viewer, customize how you display the file structure, easy to
understand. Found out about PHP 3 days ago, and this is my first prog. Categories : HTML and PHP, Complete Programs, Directories, Filesystem, PHP | | | PHP3: Formmail. Just a cgi formmail, but than in PHP. It is easy to use! Categories : HTML and PHP, Email, PHP, Perl, HTML and PHP | | | Open directory and File download Categories : PHP, Filesystem, Directories, HTML and PHP | | | Directory TreeView - File Manager & Explorer - FTP - Utility - PHP/HTML - Categories : PHP, Directories, FTP, Filesystem, HTML and PHP | | | a function that builds an HTML select list from any mysql table. Categories : PHP, MySQL, HTML and PHP | | | Tag content retrieval from websites with preg_match Categories : PHP, Regexps, Arrays, HTML and PHP | | | Message of the Day - Random Message (Needs MySQL!) Categories : Databases, HTML and PHP, PHP, MySQL | | | Check parameters validity. Paranoia was designed to check the validity of the parameters that a php page will receive after a form submission. It can be used to check the variables sent by POST or GET Categories : Algorithms, HTML and PHP, PHP, Variables | | | Alternating background color for HTML table rows Categories : PHP, Databases, MySQL, HTML and PHP | | | Constantly refresh your PHP/HTML page data. Categories : PHP, HTML and PHP, Sybase | |
|
|
|