PHP not working with HTML

General discussions related to php

Moderators: egami, macek, gesf

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

Wed Sep 26, 2012 2:26 pm

Code: Select all

<?php
echo phpinfo();
?>

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

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
  • Information
  • Who is online

    Users browsing this forum: No registered users and 4 guests