Page 1 of 1

Capture full directory path

Posted: Sat Aug 06, 2005 7:00 pm
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

Posted: Sat Aug 06, 2005 7:09 pm
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.