File: example

Recommend this page to a friend!
  Classes of Slavomir Mikolaj  >  Simple PHP Upload  >  example  >  Download  
File: example
Role: Example script
Content type: text/plain
Description: example of using
Class: Simple PHP Upload
Validate and process uploaded files
Author: By
Last change: woot
Date: 9 years ago
Size: 761 bytes



Class file image Download
$upload = new PhpUpload;
$upload->FullDisplay(true); // << To Display Full Form
$upload->SetUploadDir('./'); // << Set Upload directory
$upload->ReturnBool(false); // << Class returns only true, false
//$upload->NewName('subor.jpg'); // Set new filename
   //$upload->ReturnOutput(true); << Return Output
$upload->SetMaxSize(2000); // << Max File Size in KB
$upload->SetErrorTypes('Obmedzuje php.ini', 'Nastala chyba!', 'Zly format!', 'Subor nesmie byt vecsi ako $ kB'); // << Client error types
$upload->TryUpload(); // << If isset try upload file

For more information send a message to info at phpclasses dot org.