Jump to content

File Listbox of Directory


lamaboy20

Recommended Posts

Hello All!

  Is there anyway someone could provide code to a soultion i need here. Basically i have a directory of all these files uploaded, and i need some sort of way for a php file to list all the items in that directory somehow, it doesent need to be special, i just need them listed so my users can see what is uploaded into that directory. Any ideas?? thanks guys!

Link to comment
https://forums.phpfreaks.com/topic/42997-file-listbox-of-directory/
Share on other sites

nvm i got it

 

now is there a way to organize this data some how using this following code

 

<?php

$d = dir("/etc/php5");

echo "Handle: " . $d->handle . "\n";

echo "Path: " . $d->path . "\n";

while (false !== ($entry = $d->read())) {

  echo $entry."\n";

}

$d->close();

?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.