PHP script on HTML

I am beginner in PHP/Apache/MySQL.
I have installed Apache HHTP Server 2.2.25 and PHP v5.6.7.

Apache server is up & running and if I run test PHP script : <?php phpinfo(); ?> from file info.php it runs properly in my browser showing PHP information.

But if I open below html file in browser then I don’t get line – > Hello world thru PHP!

<?php print "Hello world thru PHP!";?>

Hello World!!!

What am I missing ? Please help.

Web servers are not usually configured to parse html files as php. Change the file to .php and it should work

[member=71845]JimL[/member] I didn’t even think of that possibility, when I seen his question. You’re amazing.

Sponsor our Newsletter | Privacy Policy | Terms of Service