Re: [PHP] Programming PHP in a modular way
Use include(); Mick On Mon, 30 Apr 2001, Andreas Pucko wrote: > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
RE: [PHP] Programming PHP in a modular way
---This is header.php My Site //this is the banner/header img //this is where the left navigation goes About Us // a link more links here end header.php--- ---start footer.php Footer Here, Copyright Etc. end footer.php - ---index.php (or any other page) the body (large space right of the nav) goes here. 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:[EMAIL PROTECTED]] > Sent: Monday, April 30, 2001 4:08 PM > To: [EMAIL PROTECTED] > 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: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > To contact the list administrators, e-mail: [EMAIL PROTECTED] > -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]
[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: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]