PHP Classes

File: ftptest.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in Bookmark in
  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: 6 years ago
Size: 622 bytes


Class file image Download
 * 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'] != ""){
ftp($_FILES['txt_file']['tmp_name'], "/home/wdnet/novapasta/".basename($_FILES['txt_file']['name']), '', '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"/>