PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Ridvan KARATAS   D3Upload   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: an example of class
Class: D3Upload
Validate and process files uploaded via Web forms
Author: By
Last change:
Date: 14 years ago
Size: 342 bytes
 

Contents

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

 
$dosya= new D3Upload('dosya'); // dosya is form value
 
 
$dosya->izinli('php,jpg,png'); // Permitted file extensions
 
 
$dosya->upload('tpl',null,true); // tpl is uplad dir
  
echo $dosya->sonuc.' Adresine Upload OLdu'; // $dosya->sonuc is file name and success result
  
?>