I'm studying PHP. I want to try the code as I go. I've installed XAMPP 1.7.4 and it worked fine. Now the problem I've got is that PHP doesn't give me a result but the code. I've been dealing with this problem for a few days. I have realized that it works (shows results) until I try code with errors, then the simple
<?php
echo 'Hello world';
?>
fails.
Looking in forums I found that I need to add:
AddType application/x-httpd-php-source .phps
AddType application/x-httpd-php .php .php5 .php4 .php3 .phtml .php
to httpd.conf.
In this forums adviced that I should add:
LoadModule php5_module "d:/xampp/php/php5apache2.dll"
to httpd.conf as well. When I've done it APACHE fails, so I commented it out in httpd.conf.
I'm desparate because I want to study no spend my time fixing the tool. Help, please.