note 22036 deleted from function.include by sniper

From: Date: Wed, 29 Jan 2003 04:11:29 +0000
Subject: note 22036 deleted from function.include by sniper
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-42986@lists.php.net to get a copy of this message
To easily put a template to your site, and change the design easily. Read this note: (already discussed but now in another way) Design Page: DO NOT PUT A TITLE TAG IN THE HEAD Add this wherever you want text to be displayed: <?php $success = @include("pages/$page.php"); if (!$success) { include("pages/home.htm"); } ?> This will include the file (pages/$page.php) where $PAGE should be specified somewhere (in the URL). If nothing was specified, it will automatically include the PAGES/HOME.HTM file. Change the paths according to your structure. In the contents page, simply type the text without formatting or by using style names (although they aren't available in the contents page, but they should be available in the design page). The style or CSS of the design page will be applied to the contents page. Also, the title of the contents page will take place of the title of the design page since no title tag was defined. the url would be: http://mysite.com/view.php?page=credits VIEW.PHP is the design page's name. Comments are welcome!

« previous php.notes (#42986) next »