Hi Alex, In that case, make your include file local; don't use the URL, use a relative path to the file. Make the include file have a function you can call or be an object you can instantiate.
ex: block.php <?php function display_block($header,$content,$link,$andsuch) { // php code here to output HTML using echo... or ?> ... direct html output here ... and a variable output such as <?php echo $header; ?> and some more html, blah blah blah <?php } // end of display_block function ?> Then in your main program do: <?php ... include_once("block.php"); ... ... display_block($header,$content,$link,$andsuch); ... ... display_block($header2,$content2,$link2,$andsuch2); ... ... ?> Or as an object: ... $block=new Block($header,$content,$link,$andsuch); $block->display(); ... Regards, James Harrell http://celestia.cbstech.com -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php