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 Ahmed Selim [ Mr.Ajax ]  >  Safe Upload  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usinf safe upload
Class: Safe Upload
Process files uploaded via Web forms
Author: By
Last change:
Date: 5 years ago
Size: 554 bytes
 

Contents

Class file image Download
<?
include("upload.class.php");

if(
$_POST){
    
$upload = new safe_upload("userfile");
    
//$upload->file_prefix = "pict";
    
print_r($upload->upload_process());
    
}else{
    echo 
"<table border=0 style='width: 100%'>
    <tr>
        <td><center>
        <form method='POST' enctype='multipart/form-data'>
<input type='file' size='20' name='userfile'> 
        </td>
        <td><center><b><font size=2>Specify Source</td>
    </tr>
    </table><center><input type='submit' value='Submit' name='B1'><input type='reset' value='Reset' name='B2'></b></font></p>
</form>"
;
}

?>