listen, are you okay with all this incredibly generous help? - I'd understand if you just wanted to call it a day
i didn't mean it like that use this code echo '*'.gettype($html_file_name).'*'; $filename = substr($html_file_name, 0, -4); PHP: what does the echo say between the * *?
ok that really confuses me. You are using some form of templating system. Have you written it yourself ?
OK What is it called? is it open source? I wonder if there is some data cleaning going on that messes this up.