Example:
<?php
$filename = "banner.gif"
echo '<img scr="' . $filename . '" height="80" width="468" alt="Click Here">
My Page!
<p>
include("body.php"); ';
?>
I know that I can't include 'body.php' that way. But is there a way to include a file inside echo? or a similar way??
img src is an html command to display an image. Even if filename was some php file, it wouldn't display anything except for a red x.
if you want to include another file, then use the include(), require(), or require_once() functions.
Cgraz
how about this...include the file outside echo
';
include("body.php");
http://www.phpbuilder.com/board/showthread.php?s=&postid=10287117