
https://xoops.org/modules/smartfaq/faq.php?faqid=151
I think you would be looking at the IFrame function...
https://xoops.org/modules/smartfaq/faq.php?faqid=270
Good luck

$host = "";
$user = "";
$password = "";
$ftp_connection = ftp_connect($host);
@ftp_login($ftp_connection, $user, $password);
$path = $HTTP_GET_VARS["path"];
$parent = substr($path, 0, strrpos($path, "/"));
$file_list = ftp_nlist($ftp_connection, $path);
?>
if($path != "") { ?>
= $_SERVER["PHP_SELF"] ?>?path== $parent ?>">..
} ?>
for($index = 0; $index < sizeof($file_list); $index++) { ?>
$file_size = ftp_size($ftp_connection, $file_list[$index]);
//Format the file name so that it doesn't include the full path.
if($path == "")
$file_name = $file_list[$index];
else
$file_name = substr($file_list[$index], strrpos($file_list[$index], "/") + 1,
strlen($file_list[$index]) - strrpos($file_list[$index], "/"));
?>
//Find out if it's a file or a directory. ?>
if($file_size == -1) { ?>
= $_SERVER["PHP_SELF"] ?>?path== $file_list[$index] ?>"> } ?>
= $file_name ?> if($file_size == -1) { ?> } ?>
} ?>
ftp_close($ftp_connection);
?>