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 Trev Tune  >  Download ZIP from URL  >  example.php  >  Download  
File: example.php
Role: Example script
Content type: text/plain
Description: An example of how to use the class
Class: Download ZIP from URL
Download and extract a zip file from a remote site
Author: By
Last change:
Date: 2013-10-22 05:38
Size: 294 bytes
 

Contents

Class file image Download
<?php
      
//This is the example of how to use this class


  
include 'urlupload.php';
       
$upload= new urluploader("http://localhost/wordpress-3.7-beta1.zip");
       if(
$upload->uploadFromUrl())
       {
$upload->unzip();}
       else {echo 
"We could not upload the file";}
?>