Genome314 Posted July 4, 2015 Share Posted July 4, 2015 I'm a PHP beginner so I'm not sure if the title is completely correct so I'll explain the symptoms. I have PHP in my html file, but instead of the echo correctly outputting only the html code, it outputs the full: echo '<a href="logout.php" title="Logout">Logout</a><br/> <a href="change_password.php" title="Change your password">Change password</a><br>'; including the '; In my httpd-xampp.conf I have the following which I THINK needs to be changed?? According to this topic: http://forums.phpfreaks.com/topic/295131-trouble-in-getting-php-to-parse-html-files/ <FilesMatch "\.php$"> SetHandler application/x-httpd-php </FilesMatch> <FilesMatch "\.phps$"> SetHandler application/x-httpd-php-source </FilesMatch> I think my problem is the same but my filesmatch has quotes, I've tried getting rid of them and entering what was entered in that topic but it doesn't work. Any help would be greatly appreciated, again, sorry for the question - I started php a few days ago... Quote Link to comment https://forums.phpfreaks.com/topic/297176-apache-not-parsing-html-files-for-php/ Share on other sites More sharing options...
CroNiX Posted July 6, 2015 Share Posted July 6, 2015 After you made your changes to httpd-xampp.conf, did you restart the webserver? Quote Link to comment https://forums.phpfreaks.com/topic/297176-apache-not-parsing-html-files-for-php/#findComment-1515703 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.