Page 1 of 1

Need something to scan 1 folder for php and html files

Posted: Wed Dec 03, 2008 9:45 pm
by Denver40
Im a php noob and have no idea what this is called but is there a script I can drop in to my folder to list as links all the html and php files in that folder? Im getting sick of manually listing the file after creating it. My server is running php 4.

Any suggestions would be appreciated. :P

Re: Need something to scan 1 folder for php and html files

Posted: Wed Dec 03, 2008 9:54 pm
by novice4eva
look into readdir() function. You will get the full solution right in the manual too.

Re: Need something to scan 1 folder for php and html files

Posted: Wed Dec 03, 2008 10:00 pm
by Denver40
Cool thanks! :P