Capture full directory path

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
nparekh
Forum Commoner
Posts: 31
Joined: Fri Aug 05, 2005 2:35 am

Capture full directory path

Post by nparekh »

Hi guys,

Quick question - is there any way of scanning a directory and capturing the details of each html file (excluding the index file) and writing this full path to a text file?

E.g I have 100 html links in a directory sucs as

http://www.mydomain.com/widget/1/widget.html

I want to write the fulll path of these html files to a text file excluding index.html in that directory.

What could I use?

Thanks in advance

Regards,

Nikhil
User avatar
feyd
Neighborhood Spidermoddy
Posts: 31559
Joined: Mon Mar 29, 2004 3:24 pm
Location: Bothell, Washington, USA

Post by feyd »

one or two part(s) glob(), one or two part(s) foreach, and a dash of array makes the world a happy place.
Post Reply