[snip]
The reasonn for my difficult answer was because the criteria for his
solution indicated that he did not want to modify the html pages
themselves. Thus the above solution is invalid :|
[/snip]
I see what you are saying, but how much modification is too much? :)
OK, another waythe HTML
On Mon, 9 Jun 2003 07:21:45 -0500, Jay Blanchard wrote:
I see what you are saying, but how much modification is too much? :)
OK, another waythe HTML could be read into a page (fopen())
containing the header/footer stuff. You'd have to deal with
identification of which page you want loaded,
On Mon, Jun 09, 2003 at 12:26:24PM -0500, Wendell Brown wrote:
OK, another waythe HTML could be read into a page (fopen())
containing the header/footer stuff. You'd have to deal with
identification of which page you want loaded, but shouldn't be too hard.
Here is what I ended up
Ok guys, I think I have a challenge for you (actually, I don't think
this can be done, but I've been proven wrong every time I've made that
assumption with php in the past, so I'll ask anyway). Here's the
question:
Is there a way to have php insert headers and/or footers into all of
the html
I would have to say yes it can be done. The way *I* would do it is like
this:
First, I would drop a .htaccess file that allows the HTML files to run
through the PHP parser. Like this AddType application/x-httpd-php .php .html
The in all of the HTML docs it would look like this:
-HTML-
-Head-
Well, my understanding of mod_rewrite is nonexistent (heck, I'm not
even sure that's the correct name), but I believe you do the
following. Write a php script to parse the file and output it with
the added lines you want where you want them. Then setup apache/php
to accept something like
On Thu, 05 Jun 2003 16:41:01 -0400, Tom Ray [Lists] wrote:
First, I would drop a .htaccess file that allows the HTML files to run
through the PHP parser. Like this AddType application/x-httpd-php .php .html
-h1-? include('header.inc'); ?-/h1-
Yeah, that would work but my goal was to not have
Yes it can be done, using the auto-prepend feature call a script that
turns output buffering on. Then in the auto-appended script read the
buffer a manipulate ith with the automatic header and footer. Thus you
modify the content only and achieve what you want without modifying
the actual HTML
[snip]
Yes it can be done, using the auto-prepend feature call a script that
turns output buffering on. Then in the auto-appended script read the
buffer a manipulate ith with the automatic header and footer. Thus you
modify the content only and achieve what you want without modifying
the actual
Jay Blanchard wrote:
There are so many ways to skin this cat. You could (as you said, it will
require adding HTML to the list of php parsed file types) have the
header, body, and footer files read into a single file and then output.
You could do something like this ... (a lot of folks use
10 matches
Mail list logo