This is not a "Basically you got to change" issue and there was no need to edit or change any .conf file.
php contained within html code is parsed by Apache if it knows it is php code, not just plain old html text - and has been pointed out in many previous posts in these forums - almost on a weekly basis (
searching first by new users is always advised).
Any file that contains php code must have a file extension of .php not .html so the server knows to parse not only the html but also the php code.
This is standards behavior and works 100% of the time.
Open the
xampp\apache\conf\mime.types and you will see that
MIME type
text/html html htm
Is just that - plain old text and the server knows what to do with it and will treat any php code just like any other text in the file.
Open (
as you did)
xampp\apache\conf\extra\httpd-xampp.conf and you will see that
MIME type
application/x-httpd-php .php .php5 .php4 .php3 .phtml
Is just that a php application that needs parsing by Apache and the server knows just how to handle the php code and any html that it finds in the file.
Of course, you can do what you did by your choice, but if you had followed standard procedure and named your file, that included php code that needed parsing, with the correct file extension then, as by design, XAMPP will work "right out of the box".
===========================================
1. The new
DeskTopXampp Launch Control for
XAMPP / XAMPPlite
Posted by
Ridgewood available from Ridgewood's
DTX web site
2. Build Rich
AJAX Applications - Faster
TIBCO General Interface Pro Edition but
FREE and
Open Source
Fully working with
NO donations required to get a user/password
===========================================