I have installed Xampp and everything works as it should when I create and run a .php file. Except when that file contains any reference to a databse connection. When that happens, instead of generating the page, only the code appears in the browser. I am using version 1.7.3 on a 64 bit Windows 7 platform. My connection file successfully connects with the database when run in Dreamweaver, but when I try to preview a file in my browser, all I get is the code.
The code was originally written for PHP 4, and runs without any problem on my other installation, which dos not use xamp,with the components installed as seperate units. I was told that PHP 5 should be backwards compatible with most PHP4 code.
In addition, Windows 7 does not seem to display the file endings of .ini files, so it is hard to know which file is php.ini. A search for php.ini does not come up with a file of that name, but with a whole host of files called just php.
Does the standard install of xamp have an ini file that allows PHP and MySql to work together, or does it need changes.