You are here: Re: 2 methods of including files sequence « PHP Programming Language « IT news, forums, messages
Re: 2 methods of including files sequence

Posted by webcm123 on 06/23/07 20:44

There is also another way to make all modules (or choosen) access to
<title> and <head>. Index.php includes one file before <html> (which
gets data and sets <title> and other <head> files). That file also
defines MOD constant.
The main layout included by index.php in <body> includes other file
(defined in MOD constant) which displays data.

Advantages:
:: Less memory usage
:: All modules (or choosen) can access <title> and <head>

Disadvantages:
:: More files (the second in <body> rather must contain PHP)
:: Sometimes modules needs to show an information only. Including
additional file for doing only it is impractical.


However, if <title>s like "Show user: [username]", "Poll:
[pollname]" (I can add POLL module to including before <html> because
I have to include other file with PHP code too), "Archive from 1st
May", "Private messages: folder Inbox" aren't so needed for users or
search engines, I think that "generating step-by-step" method isn't
very bad.

What do you think about it? The main goal of this CMS is speed,
performance and low RAM usage. People say that output buffering is
slow and developed for other usages than it.

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация