It has to end in .php to be parsed by the PHP engine, change your file name back to PrintInfo.php.

The HTML code (within the PrintInfo.php code) will not be analysed by the PHP parser, bnut instead be sent straight to output. The PHP parser only reads between the <?php and ?> tags.

Thanks Roberdin. Sorry I should have specified that I'm trying to make web pages with embedded php work, so I was wanting .html files to work. I found out I needed to add this line to my httpd.conf file in the Apache directory:
AddType application/x-httpd-php .html
to get apache to associate .html files with the php engine.

How can you do the same as above in IIS. It's in the planning stages to convert to Apache but that may or may not happen.
In any case, do to some restrictions(long story) I HAVE to use .HTM as the first called document. I can use that to run into .PHP docs but it would be nice to be able to start in PHP for some dynamic forms development.

you can't run php code inside a .html files.... your files should be saved as .php so it will be parsed at the server.

Actually you can - but it means using htaccess files (as mentioned previously) or using a templating engine (e.g. Rain TPL) which stores cached php files of htmls. For everyday use, I really can't see what advantage there is to be gained from using the *.htm(l) extension if you're using server-side code.

Actually you can - but it means using htaccess files (as mentioned previously) or using a templating engine (e.g. Rain TPL) which stores cached php files of htmls. For everyday use, I really can't see what advantage there is to be gained from using the *.htm(l) extension if you're using server-side code.

Actually, if everybody would have read my post they would have seen
1. Yes you can in Apache with some .htaccess modifications.
(noted in previous posts and was a fix for the original question.)
2. I'm not running Apache, I'm running IIS so those modifications will not work in my case.
3. I have some restrictions that REQUIRE me to use a .HTM extension as a "landing page" and can pass data to PHP from a form but I HAVE to use the .HTM extension first.

In any case, we have found a work-around for this problem so I no longer need to modify the IIS server data. Thanks anyway

Well, technicaly, it wasn't "solved" being that the question wasn't answered. We just decided to go another route, abandoning the idea.
Oh, and being a new person on this forum, I have no idea how to mark this "solved".

hmmm, it might be because I wasn't the originator of the post but that option is not available to me for this thread.
I even had a couple of other people look. Just in case I was missing it for some reason.

I have a 2d matrix with dimension (3, n) called A, I want to calculate the normalization and cross product of two arrays (b,z) (see the code please) for each column (for the first column, then the second one and so on).
the function that I created to find the ...

I'm working in Excel to extract content of a table from a web page and populate Excel sheet cells with it. I'm trying to extract data from a table that gets loaded to a web page after show results method gets called. I have an error that says "Run-time error ...