Re: What is the best way to do this...

From: Date: Fri, 26 Oct 2001 07:24:19 +0000
Subject: Re: What is the best way to do this...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-72402@lists.php.net to get a copy of this message
On Fri, 26 Oct 2001 16:48, DeloX wrote: > Let s say i have 5 pages on my site. I want some content to appear on > each page so that when i want to change that content on all the pages i > have only one place to modify. I used to write that content in a .txt > file and having it read each time any of the 5 pages was loaded. So i > had to modify the code only in the .txt file. It was working good but > the code in the .txt file could not be PHP because it would not be > processed when loaded by the other pages. There s probably a better way > of doing it. Like a page can probably include another page that itself > include another one. > > Any help would be great > Thx You'll find in the docs about include/require that when a file is included, the parser drops back to 'text' mode; if you want the contents of an included file parsed you need to put <? ?> tags in the file. -- David Robley Techno-JoaT, Web Maintainer, Mail List Admin, etc CENTRE FOR INJURY STUDIES Flinders University, SOUTH AUSTRALIA Funny off-topic messages are always on-topic.

« previous php.general (#72402) next »