Need something to scan 1 folder for php and html files

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
Denver40
Forum Newbie
Posts: 18
Joined: Tue Dec 02, 2008 9:58 am

Need something to scan 1 folder for php and html files

Post 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
User avatar
novice4eva
Forum Contributor
Posts: 327
Joined: Thu Mar 29, 2007 3:48 am
Location: Nepal

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

Post by novice4eva »

look into readdir() function. You will get the full solution right in the manual too.
Denver40
Forum Newbie
Posts: 18
Joined: Tue Dec 02, 2008 9:58 am

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

Post by Denver40 »

Cool thanks! :P
Post Reply