<!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>