Today I tried once again to get MachCMS working together with PHP 4. With my experience from the last attempt, it only took me 3 hours of constant work. I rewrote the DataBase class which uses a CSV based file format (PHP4 only) instead of the much better SQLite which is only supported with PHP5.
I cannot make these two versions compatible with each other though. For example in the PHP5 version you could do this to set a value in the template:
$template->MyValue = “This is my value”;
While in the PHP4 version you have to do the same thing like this:
$template->values[’MyValue’] = “This is my value”;
As you can plainly see, the latter is more complex and is simply means more typing.
So pages written for PHP4 are compatible with the PHP5 version, but not vise-versa.
I am now going to put MC through some real world testing and then build a Mac OSX installer before releasing.