The following block of text is written by making the following PHP call:
include "htmlblock.html";
This is just some random static text that I want inserted into the calling HTML page. The idea is that this same bit of text could appear on many pages, maybe in the footer or header of the page. If I need to change it, then I only have to change it in one place!
If the text is formatted with a border around the edge etc. then the HTML has been processed correctly.
Another paragraph, written with PHP. The webserver is not parsing HTML files for PHP, since this file (regardless of its extension) is included within <?php tags which is within a PHP file. So it is being processed after it is included I recon.
If this paragraph displays, then the $MASTER variable defined within includehtml.php is within scope.
Now... If THIS paragraph displays, then the $INC variable defined within vars.inc.php that is included in includehtml.php is within scope!
The following block of text is written by making the following PHP call:
include "htmlblock.php";
This is just some random static text that I want inserted into the calling HTML page. The idea is that this same bit of text could appear on many pages, maybe in the footer or header of the page. If I need to change it, then I only have to change it in one place!
If the text is formatted with a border around the edge etc. then the HTML has been processed correctly.
Another paragraph, written with PHP. I recon this should be rendered BEFORE(?) it is actually included in the resulting PHP file however, as this has a .php file extension?!
If this paragraph displays, then the $MASTER variable defined within includehtml.php is within scope.
Now... If THIS paragraph displays, then the $INC variable defined within vars.inc.php that is included in includehtml.php is within scope!