You are here: CMS Design « PHP Programming Language « IT news, forums, messages
CMS Design

Posted by Sharon O. on 01/12/07 00:07

I'm currently using my own method to make a CMS work as follows:

User wants to open /pages/foo.php.


Content of foo.php:
<? include (".../includes/cms.php"); ?>

Content of cms.php::
<title>...<body>...pretty pictures...
<? if ($url = /pages/foo.php) { include (".../pages/foo.inc.php"); ?>
</body>

foo.inc.php then contains the actual content:
<h2>About us</h2><p>We are...


As you can see foo.php simply opens the CMS script. The CMS script then
handles giving the website design to the browser, then it works out where
the needed page containing the content is from the URL.

This works fine but is this a better way anyone could suggest I use?

 

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

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