PHP not working with HTML

General discussions related to php

Moderators: macek, egami, gesf

Post Reply
User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: PHP not working with HTML

Post by egami » Wed Sep 26, 2012 2:26 pm

Code: Select all

<?php
echo phpinfo();
?>

User avatar
egami
php-forum GURU
php-forum GURU
Posts: 2196
Joined: Wed Oct 06, 2010 11:19 am
Location: Happy Valley, UT

Re: PHP not working with HTML

Post by egami » Thu Sep 27, 2012 7:25 am

I completely skipped over the obvious.

.php will execute in .php extension files, not .html.

rename the file to hello.php and try it again.

Post Reply

Who is online

Users browsing this forum: Bing [Bot] and 5 guests