|
Posted by Jerry Stuckle on 08/15/06 15:28
laredotornado@zipmail.com 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
>
Or, you don't even need php - you can do a server-side include, if your
server is set up to parse the file for SSI:
<!--#include virtual="/file/contains/mystuff.html" -->
Slightly more efficient than using PHP if you're already parsing the
file for SSI (the server will handle it without calling PHP). But
probably less efficient if you aren't already parsing it.
--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
Navigation:
[Reply to this message]
|