Liam Delahunty: Home Tips Web Contact
Recommended laptop
under £500
.

Think I deserve a present? See my Amazon Wish List

PHP Read in Title from a file using fgets

This will work through a directory and produce a listing of all the files, parsing each one for a TITLE tag. When found it will display it, along with the file name, and an interpreted filename.

This is useful to quickly look through a list and see if your files have appropraite titles to the file name, the closer your filenames and titles match your keywords, the better for search engine optimization and your page rank.

Please find the source code here: PHP - Read in Title from a File - Source Code