Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001062

[PHP] extracting <h1> element for TOC From: Chris Komlenic (chris <email protected>)
Date: 06/30/01

I have a directory with many small html files...which I'd like to return the
text within the <h1> tags for the purpose of creating a table of contents
(TOC).

I currently have a script which reads the directory, and returns all the
files which I'd like to open. I'm a bit lost on how to write a loop which
would open each file, and return the info within <h1> tags.

How could this best be accomplished?

Thanks in advance.

Chris

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>