...

View Full Version : listing in a page files of directory



gilgalbiblewhee
01-22-2008, 08:10 AM
I was wondering if php has the ability to list files of a directory in a page. For example you have:

folder xyz

and within that folder/directory

abc.php
def.php
hij.php

I was thinking instead of writing the files to link them one by one maybe there's a simpler solution.

shyam
01-22-2008, 01:23 PM
scandir (http://php.net/manual/en/function.scandir.php)
opendir (http://php.net/manual/en/function.opendir.php)
glob (http://php.net/manual/en/function.glob.php)



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum