PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Ahmed Syam   Soft Uploader   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example how to use class
Class: Soft Uploader
Validate and move an uploaded file
Author: By
Last change:
Date: 10 years ago
Size: 724 bytes


Class file image Download

require_once 'upload.class.php';

$up = new uploader();

//give it FILES array with input name

//Set Upload directory >>if not found it will be created

//set allowed mime type

//set allowed extensions

//Process uploading
$upimg = $up->Upload();

<form action="example.php" method="post" enctype="multipart/form-data">
    <input type="file" name="file" />
    <input type="submit" name="submit" value="upload" />