I was contracted to help work on a php program, but I'm having trouble getting my PHP 5 version to work with their program.
I am running WAMP, with Apache version 2.2.8 and PHP 5 version 5.2.6
I also have PHP 4 installed with Apache 2.0.63. The nice thing about wamp is that you can go back and forth between versions of Apache and PHP 4, without any hassles. That's the theory at least.
If I'm running PHP 4 I can go to the directory that my index file is in, and the page will start to generate. I get an undefined function error, because the function is only available in PHP 5. No problems. I switch over to my Apache 2.2.8 and PHP 5.2.6, restart the services, and attempt to refresh the page. At this point the page no longer generates and I'm greeted with a blank white screen. I view the source, and it's all my PHP source code.
My initial idea was that my httpd.conf and php.ini files were messed up. I checked them out, and everything looks fine. I decided to set up a simple php info page as follows.
<?php echo phpinfo(); ?>
Everything runs fine and I'm told that I'm running PHP 5.2.6. Then I make another page with various php functions, and everything works fine. So PHP 5 is running without any problems.
So now I need to figure out why I'm not getting the other page generated. It should be noted that the other page is in a SVN repository, but that shouldn't make any difference. The pages still load with no problems. I'm also pulling from an Oracle database, but I can connect and everything with no problems.
Thanks for any guidance you can give. Just to sum up, my problem is that running php 5 on my //localhost/ is resulting in a blank page with php source code. And before it's asked yes, I am accessing the file via //localhost/ and not c:\.
Thanks again everyone.