how to rad the names of all files saved in the folder on the server using php. and then make a call to that php page using ajax to display that list of files
This is the code to display file list:
$dir = '/tmp'; // your directory path $files = scandir($dir); foreach ($files as $file) { if (is_file($file)) { echo $file . ''; } }
This is the HTML/JavaScript to display the file list (if you use jQuery which is highly advised):
File list