Location: PHPKode > scripts > FTP object class > ftp-object-class/ftptest.php
<!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>
Return current item: FTP object class