Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of wenchi  >  class upload file  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example
Class: class upload file
Validate and process files uploaded via Web forms
Author: By
Last change:
Date: 6 years ago
Size: 789 bytes
 

Contents

Class file image Download
<?

include_once(dirname(__FILE__)."/class.uploadfile.php");

$upload=new classUpload(dirname(__FILE__));
$upload->uploadFile($_FILES[file][name],$_FILES[file][type],$_FILES[file][tmp_name]);
$upload->save();
$upload->getFileArray();


$upload=new classUpload(dirname(__FILE__));
$upload->uploadFile($_FILES[file][name],$_FILES[file][type],$_FILES[file][tmp_name]);
$upload->setImageType();
$upload->save();
$upload->getFileArray();


$upload=new classUpload(dirname(__FILE__));
$upload->uploadFile($_FILES[file][name],$_FILES[file][type],$_FILES[file][tmp_name]);
$upload->setImageType(600,150);
$upload->save();
$upload->getFileArray();

?>
<form method="POST" enctype="multipart/form-data">
<input type="file" name="file">
<br>
<input type="submit" name="submit" value="submit">
</form>