PHP Classes

File: example.php

Recommend this page to a friend!
  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: 10 years ago
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";}
?>