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 Carlos Falo Hervás  >  FTP object  >  ftptest.php  >  Download  
File: ftptest.php
Role: Example script
Content type: text/plain
Description: Test script
Class: FTP object
FTP client wrapper
Author: By
Last change:
Date: 12 years ago
Size: 421 bytes
 

Contents

Class file image Download
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<? require ("ftp_object.class.php") ; ?>
<?
require ("ftp_init.inc") ; ?>
<html>
<head>
    <title>Test for FTP class</title>
</head>
<body>
<?
   
if ($ftp->connected) {
       
$ftp->put("ftptest.php",1) ;
        echo
"REMOTE DIRLIST:<BR>" ;
       
$ftp->dirlist() ;
        }
    echo
"LOCAL DIRLIST:<BR>" ;
   
$ftp->ldirlist() ;
   
$ftp->destroy() ;
?>
</body>
</html>