A quick search on Google for opendir contents of directory produced this page which may of of use to you. But it really is that simple!$dirtoget="/home/yourname/www/images/"; opendir(IMD, $dirtoget) || die("Cannot open directory"); @thefiles= readdir(IMD); closedir(IMD);
In reply to Re: Listing a directory
by beebware
in thread Listing a directory
by IndirectX
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |