So I am trying to use the PHP "require()" function to make server-side includes in my MT pages. The require function basically just pulls in another PHP file and executes in inline... simple stuff.
Here's the issue (or bug): the require function dies completely when it is run on a page MT has physically generated. Let's use index.php as an example. If I download index.php to disk, then delete it from the server, then reupload it, the require function works!!! This tells me it is probably permission-related since uploading a new file effectively resets the permissions.
Furthermore, if I try to change permissions on any MT-generated file, I get an error in my FTP program. Seems the permissions just stay at 666. I've even modified the HTMLPerm line in the mt.cfg file to spit out 777 files, and a Get Info in my FTP program still always shows 666 permissions.
What on earth could be causing this? Why wouldn't MT-generated files be able to handle this PHP function? They handle other PHP functions just fine.
Thanks,
Mike