I have an HTML page that I want to place inside of a PHP page.
Right now I am using the <IFRAME> to do it. While it works, Iframe does have some draw backs.
I have tried using the INCLUDE function but it would not work.
Here is the raw HTML I am trying to place: http://www.melvinweather.com/gaugetest.htm
Here you can see it running in the IFRAME: http://www.melvinweather.com/template/indexDesktop.php
Here is the PHP file I am trying to embed the HTM in.
Code: Select all
<?php
# Name
# Namespace: nameSpace
# Meteotemplate Block
// load theme
$designTheme = json_decode(file_get_contents("../../css/theme.txt"),true);
$theme = $designTheme['theme'];
include("../../../config.php");
include("../../../css/design.php");
include("../../../scripts/functions.php");
$languageRaw = file_get_contents($baseURL."lang/gb.php");
$language['gb'] = json_decode($languageRaw,true);
$languageRaw = file_get_contents($baseURL."lang/".$lang.".php");
$language[$lang] = json_decode($languageRaw,true);
?>
<!-- BLOCK CONTENT -->
<iframe src="http://www.melvinweather.com/gaugetest.htm"
width="100%" height="590" frameborder="0"
</iframe>
Bob