Skip to content

Instantly share code, notes, and snippets.

@tayfunerbilen
Created November 28, 2013 14:14
Show Gist options
  • Save tayfunerbilen/7692507 to your computer and use it in GitHub Desktop.
Save tayfunerbilen/7692507 to your computer and use it in GitHub Desktop.
verot.net basit kullanımı
<?php
require 'class.upload.php';
if ( isset( $_POST[ 'submit' ] ) ) {
$image = new Upload( $_FILES[ 'image' ] );
if ( $image->uploaded ) {
// upload klasörüne değişiklik yapmadan kayıt et
$image->Process('upload/');
if ( $image->processed ){
print 'resim yükleme işlemi başarılı!';
} else {
print 'Bir sorun oluştu: '.$image->error;
}
}
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment