I am experiencing a similar problem where one part of my website sees PHP4 and the other sees PHP5, problem is, all my content sees only PHP4, but my site needs PHP5 to run (actually, this wouldn't be a problem if they had DOMXML installed on the PHP4 version, since my code can use either DOM or DOMXML).
I have a php file that acts as a "server" page for all my other .php files. The file has no extension, so I use a .htaccess directive to tell Apache its a php file not a directory:
Basically, I use it as http://domain.com/main/file_to_load, and main displays my stie template and loads the corresponding .php file via an include statement (I make sure no one can link a maliscious file here, just so you know).
For some reason, any php served under this file sees PHP4.
I have created two examples of the phpinfo() output. info1.html is generated by calling phpinfo within my main file. info2.html is generated by calling phpinfo straight from a regular .php file.
Does this have something to do with my .htaccess file. Is my telling apache its a .php file causing it to use PHP as a module instead of as CGI? Is there a way to fix this? Any help would be appreciated.