RE: [PHP] Programming PHP in a modular way

From: Date: Tue, 01 May 2001 02:28:46 +0000
Subject: RE: [PHP] Programming PHP in a modular way
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50940@lists.php.net to get a copy of this message
---This is header.php-------- <html> <head> <title>My Site</title> </head> <body> <table width="100%" border="0" <tr><td colspan="2"> <img src="images/mybanner.gif"> //this is the banner/header img </td></tr> <tr><td width="175"> //this is where the left navigation goes <a href="about.php">About Us</a><br> // a link more links here </td> <td> ---- end header.php--- ---start footer.php ---- </td> </tr> </table> <table width="100%"> <tr><td> <center> Footer Here, Copyright Etc. </td> </tr> </table> </body> </html> ---- end footer.php ----- ---index.php (or any other page) ---- <? include('header.php'); //include the header ?> the body (large space right of the nav) goes here. <? include('footer.php'); //include the footer ?> ---- end index.php --------- easy cheesey. just break up the html logically. you don't need it all in one file. break up pages like you would static html. hope this was what you were wanting to know. > -----Original Message----- > From: Andreas Pucko [mailto:andreas.pucko@web.de] > Sent: Monday, April 30, 2001 4:08 PM > To: php-general@lists.php.net > Subject: [PHP] Programming PHP in a modular way > > > Hello, > > I am a newi in PHP. Currently I am creating my first site. > > I would like to programm it modularly. I tryed it, but I came to > the point, > that I have everything in one file with a huge amount of tables. > > What would be the best way to build a site with a navigation on > the left and > content on the right. > > The question is.. what is the proper syntax to open the next content from > the menu. Open it in > the same file, or open a new one?? > > Thanks > > Andy > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#50940) next »