
Originally Posted by
stevehendo34
this dose not work why?
<tr>
<td class="bgy" background="images/t4.gif" height="100%"
valign="top"><br>
<?php
include ("http://locaalhost/external.html");
?>
</td>
</tr>
<tr>
There may be any number of reasons it doesn't work.
>> is the filename/path correct (did you misspell "localhost" in your script, as you did in your example above)?
>> is your page saved as a .php file?
>> is your computer set up to run php scripts (e.g., using xampp or other server software)?
No way for us to know for sure, without knowing more about what's going on.

Originally Posted by
stevehendo34
external.html
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>external</title>
</head>
<body>
external_page
</body>
</html>
Also,
If you're including an html page inside another, it should only have the content you want included - not its own <head>, <body>, etc. That will result in messy markup that could generate errors, or at least, not display the way you want it:
HTML Code:
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>main page</title>
</head>
<body>
<!--this is the included page-->
<html>
<head>
<meta content="text/html; charset=ISO-8859-1" http-equiv="content-type">
<title>external</title>
</head>
<body>
external_page content
</body>
</html>
<!--as you can see, you now have two head sections, etc., nested inside each other,
when all you really wanted was the *content* of the external page-->
</body>
</html>
Bookmarks