latheesan
08-15-2005, 06:18 PM
Basically, im doing a little check to see if someone is directly accessing my script, if so, warn them, otherwise echo the real content of the page like this
<?php
if (!defined('IN_SCRIPT')){
echo "Sorry, you can't access this page directly!";
}
else{
//The real content
echo "<table align=\"center\" border=\"0\" width=\"800\" height=\"300\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"800\" height=\"300\" align=\"left\" valign=\"top\" class=\"body\" bgcolor=\"#FFFFFF\">
<?php include ("file.php"); ?></td>
</tr>
</table>";
}
?>
as you can see, inside the table im trying to include a php file in there, but i cant seemed to be able to do this.
So, ho do you include a php file inside a table in html you are echoing?
<?php
if (!defined('IN_SCRIPT')){
echo "Sorry, you can't access this page directly!";
}
else{
//The real content
echo "<table align=\"center\" border=\"0\" width=\"800\" height=\"300\" cellspacing=\"0\" cellpadding=\"0\">
<tr>
<td width=\"800\" height=\"300\" align=\"left\" valign=\"top\" class=\"body\" bgcolor=\"#FFFFFF\">
<?php include ("file.php"); ?></td>
</tr>
</table>";
}
?>
as you can see, inside the table im trying to include a php file in there, but i cant seemed to be able to do this.
So, ho do you include a php file inside a table in html you are echoing?
