Login   Register  
PHP Classes
elePHPant
Icontem

File: exampleDownload.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of leonardo ramos  >  Transmission of file  >  exampleDownload.php  >  Download  
File: exampleDownload.php
Role: Example script
Content type: text/plain
Description: Download example
Class: Transmission of file
Get and send files from SSH, FTP and HTTP servers
Author: By
Last change:
Date: 2009-07-06 05:10
Size: 404 bytes
 

Contents

Class file image Download
<?php

/*
 * SSH2 EXAMPLE
 */

include('Download.class.php');

$download = new Download("SSH2");

$download->setConnection('LXGED'"/var/dir/dir2/files/file.txt","user","password","");


    if(
$download->start()) {
        
        
/*
         * The method 'getContent ()' should be called before any HTML. 
         */
        
$download->getContent();
        
    } else {
        echo 
$download->getExceptions();
    }



?>