Why not get a program to do it for you? Just use the 'library' function in Dreamweaver (I got the demo!) or some other editor. It would make it go faster and search-engines would be able to index all the pages.
IMHO anyways.![]()
i think i figured out how to keep a lightning fast site while still make it easy on us
i dunno if it exists, but we need a script that will:
1) take text from an existing file (or a form)
2) add header and footer
3) write the new text (with header and footer) to an html file.
(cgi-php-asp, don't matter)
any script like this or should i write my own? (doesn't sound too hard, just a couple of cut 'n paste jobs from the right scripts...)
Why not get a program to do it for you? Just use the 'library' function in Dreamweaver (I got the demo!) or some other editor. It would make it go faster and search-engines would be able to index all the pages.
IMHO anyways.![]()
}:8) Supermoo
Be happy.
FreeWebSpace.net Forums' Official Cow
Lightning fast and cgi... hmmm... don't think so. Why wouldn't you SSI the pages again?
store them in a database and recall them with a simple script.
religion is for people who haven't found drugs
prob is i have no experience with databases (that's right, none whatsoever)
Apparently someone finally caught on to what I've been posting each time someone posts about using SSI to include static headers and footers.
Using CGI or PHP is inherently slower than just pulling up static HTML pages. Therefore, "build" your pages beforehand: keep a template and have the text somewhere else. There already is a system that does this for you, and supports quite a few things called WML.
mjk@atlascgi.com
Wouldn't WWWBoard be pretty close to what he needs? With a few simple modifications, it looks to me it could be the perfect CGI script for him.
~Aaron
WWWBoard... hmmm
well it sounds like a Message Boards name but i'll check it out...
But it's so editable it can be customized to fit what you were asking for.
~Aaron
Using *any* type of script for this seems a bit over the top. No wait, way over the top. There are quite simple and easy ways of doing what you originally asked for (as far as I can figure.
Maybe I'm reading this wrong as to what what you are trying to do. But SSI or php seems to be the usual way to accomplish this. You don't seem thrilled with SSI so I'm just going to throw out the php version of the same thing. It isn't different, so it probably won't help...
<?php include("/the/absolute/path/to/the/file.txt"); ?>
<? require("head.html");
require("file.txt");
require("foot.txt");
?>
should do it if thats all you wanted...
Perhaps I'm not understanding what is wanted here, but it seems like no dynamic insertion is needed. *NO* PHP, CGI, or SSI. They want a script that generates STATIC files with a given header and footer.
Reference my previous post for ideas
mjk@atlascgi.com
php is NOT inherently slower than static, and about a bizillion time easier to use if you want to change that layout, instead of editing every file, you just edit two and the changes are visible on every page. Have you ever used PHP? The speed difference is less than 100ms.
Also if you have a fast server it can go as low as 25ms.
koolplace\dot\com - an amazingly awesome, pointless site
Have you ever used the WML system? No. Have I used PHP? Yes. All you change with a WML system is those same two files. Have you ever administrated any servers that have a large load? I'm meaning way more than just in the thousands of hits a day. Small changes make big differences.Originally posted by jw
php is NOT inherently slower than static, and about a bizillion time easier to use if you want to change that layout, instead of editing every file, you just edit two and the changes are visible on every page. Have you ever used PHP? The speed difference is less than 100ms.
Certainly PHP is a very fast option, because, yes, I know that since I use it extensively. A good programmer and/or sysadmin doesn't limit themselves to a simple set of tools when there are better options.
mjk@atlascgi.com
[Edited by atlas on 12-16-2000 at 11:21 PM]
Bookmarks