Login   Register  
PHP Classes
elePHPant
Icontem

File: ftptest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Igor Herson Aquino de Franša  >  Simple Ftp  >  ftptest.php  >  Download  
File: ftptest.php
Role: Example script
Content type: text/plain
Description: file test
Class: Simple Ftp
Upload files to an FTP server
Author: By
Last change:
Date: 5 years ago
Size: 622 bytes
 

Contents

Class file image Download
<?php
/*
 * Created on 22/07/2009
 *
 * To change the template for this generated file go to
 * Window - Preferences - PHPeclipse - PHP - Code Templates
 */
if(isset($_POST['start_upload']) && $_FILES['txt_file']['name'] != ""){
    include(
'ftp.class.php');
    new 
ftp($_FILES['txt_file']['tmp_name'], "/home/wdnet/novapasta/".basename($_FILES['txt_file']['name']), '200.165.139.3''wdnet''WDNET');
}
?>
<form action="" method="POST" enctype="multipart/form-data">
   Please choose a file: <input name="txt_file" type="file" size="35" />
<input type="submit" name="start_upload" value="Upload File"/>
</form>