(I'm a php hacker and would appreciate it if anyone who really knows php regular expressions could modify my code to improve/correct as nec).

I don't know how many of you are still using Site Sift's directory script but it is very seo friendly and very free provided you link back to the site.

Alas the script is no longer supported and won't run reliably under php 5.3 and will have particular problems under php 5.4 as you won't be able to login to the admin area.

My host upgraded to php...

Site sift mods to make work directory script run under php 5.4 (deprecated functions)