php - scan through FTP folder and display the contents via web -
are there such method/programs im able scan through ftp folder files , display contents on webpage?
apology if seems vague, let me describe scenario. user upload public ftp folder, , contents on it, displayed via json/xml or whatever ways im able display files/filenames on php page.
i dont know how phrase question google it. opted asking here cause maybe me identify functionality im looking for.
thanks.
use ftp_nlist
instead. use below code:
<?php // set basic connection $conn_id = ftp_connect($ftp_server); // login username , password $login_result = ftp_login($conn_id, $ftp_user_name, $ftp_user_pass); // contents of current directory $contents = ftp_nlist($conn_id, "."); // output $contents var_dump($contents); ?>
Comments
Post a Comment