| 
<?php
/*
 * Include required file
 */
 include("ftpcrawler.php");
 
 echo "<pre>";
 
 try
 {
 /*
 * Create a new instance of the class
 */
 $ftpcrawler = new ftpcrawler;
 
 /*
 * Set FTP server to connect to
 */
 $ftpcrawler->server = "ftp://user:[email protected]:21/folder/subfolder/";
 
 /*
 * Crawl and print the result in HTML format
 */
 print_r($ftpcrawler->crawl("html"));
 } catch (Exception $e)
 {
 echo $e->getMessage();
 }
 ?>
 |