Welcome to the Treehouse Community
Want to collaborate on code errors? Have bugs you need feedback on? Looking for an extra set of eyes on your latest project? Get support with fellow developers, designers, and programmers of all backgrounds and skill levels here with the Treehouse Community! While you're at it, check out some resources Treehouse students have shared here.
Looking to learn something new?
Treehouse offers a seven day free trial for new students. Get access to thousands of hours of content and join thousands of Treehouse students and alumni in the community today.
Start your free trialMichael Moore
7,121 Pointslocally - php not recognized in html files
I am running this locally. I have apache2, mysql, php7, and running on linux/ubuntu. When I tried to do the very beginning of this video, just changing the title, it didn't recognize php code, such as <? echo "Media Player"; ?>. When I run it in the file, it just puts the whole line, with tags and all. I found something saying i need to modify my httpd.conf, or apache2.conf, but it doesn't say specifically what needs to be changed. Can anyone give me a clue as to how to make my local environment recognize inline php in html files?
1 Answer
Henrik Christensen
Python Web Development Techdegree Student 38,322 PointsPhp code won't be executed in html files (.html) - it will only be executed in php files (.php)