Re: Is there a more efficient way to do this?
- From: Gary Hasler <garyhasler@xxxxxxxxxxxxxxxxxxxx>
- Date: Tue, 15 Aug 2006 17:39:13 GMT
Or, you can change all 15 pages to one php page, which includes the body
contents from one of 15 html files.
This would change a typical url from "yourdomain.com/page3.php" to
"yourdomain.com/main.php?page3", and the php script would have a line like
<td><?php include ($root . "/" . $query . ".html"); ?></td>
For the title, just echo a variable $title which gets looked up based on
the query string.
Note this has other repercussions like affecting search engine behaviour
and caching, so it may not be the ideal solution.
"laredotornado@xxxxxxxxxxx" wrote:
Hi, I'm using PHP 4.3. I have 15 pages in which I need to take the
content of the BODY and put it in a little table ...
<table>
<tr><td colspan="3"><img src="header.gif"></td></tr>
<tr>
<td><img src="left_img.gif"></td>
<td><!-- body content goes here --></td>
<td><img src="right_img.gif"></td>
</tr>
<tr><td colspan="3"><img src="bottom.gif"></td></tr>
</table>
It is a pain to have to cut and paste all this HTML code (the above is
just an abbreviated version) into all 15 pages. And plus, if the shell
changes, I'll have to change it in 15 pages. Any advice on an
efficient way to add this to everything?
Thanks, - Dave
.
- References:
- Is there a more efficient way to do this?
- From: laredotornado@xxxxxxxxxxx
- Is there a more efficient way to do this?
- Prev by Date: Re: In search of a span of class.
- Next by Date: Re: index.php not loading HELP
- Previous by thread: Re: Is there a more efficient way to do this?
- Next by thread: Re: Is there a more efficient way to do this?
- Index(es):
Relevant Pages
|
|