PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Amir   PHP uploads.im API class   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: example script
Class: PHP uploads.im API class
Upload local or remote files to uploads.im
Author: By
Last change: credits
Date: 8 years ago
Size: 398 bytes
 

Contents

Class file image Download
<?php

require_once dirname(__FILE__) . '/uploadsim.class.php';
$upload = new uploadsim();
$result = $upload->localupload("image.jpg");
if (
$result["status"] = true) {
   echo
$result['url'];
} else {
  
var_dump($result);
}
$result = $upload->remoteupload("http://yoursite.com/image.jpg");
if (
$result["status"] = true) {
   echo
$result['url'];
} else {
  
var_dump($result);
}
?>