If you need to cut your layout, you need xHTML. To split your project in pieces, you can use some other pages, like "header.php" or "menu.php" but you have to carefully add them in your code [you can mark them with comments].
So, post here your code after output. I think this is more a HTML problem.
use something like
PHP Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html dir="ltr" lang="en"> <head> <title> ... and others ... </title> <?php require 'elm_meta.php' ?> </head>
<body> <div id="menu"> <!-- my PHP menu starts here --> <?php require 'elm_menu.php' ?> <!-- ==== end of menu ==== --> </div> .... and others ... </body> </html>
so, with your comments you'll know where the include starts and when it ends
// edit //
you don't have to use document_root
To make a debug, just echo the required path (before require it)
Last edited by vectorialpx; 06-29-2010 at 11:04 AM..
|