Hi, I am new to php and html. Here my question Is there possible to have PHP code in .html file like these I created a test file and filename it test.html <html> <head></head> <body> <h1> <?php echo "I LOVE PHP!"; ?> </h1> </body> </html> When I execute this test.html file its not working means not executing the php code.Is it possible to execute these file. If it is not possible Why? thanks
You CAN parse php in html files by fiddling around with htaccess. One of the first results in Googs: http://www.desilva.biz/php/phpinhtml.html But if you're just starting out with php, just use the php extension.