Closed Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 26

Thread: I finally figured out what i need

  1. #1
    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...)

  2. #2
    NLC }:8) Supermoo is an unknown quantity at this point }:8) Supermoo's Avatar
    Join Date
    Oct 2000
    Location
    Melbourne, Australia
    Posts
    1,993
    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

  3. #3
    NLC Chicken is an unknown quantity at this point Chicken's Avatar
    Join Date
    Oct 2000
    Location
    Southern Cali
    Posts
    2,614
    Lightning fast and cgi... hmmm... don't think so. Why wouldn't you SSI the pages again?

  4. #4
    Pro Member razor is an unknown quantity at this point
    Join Date
    Oct 2000
    Location
    BFE, Pennsylvania
    Posts
    272
    store them in a database and recall them with a simple script.
    religion is for people who haven't found drugs

  5. #5
    prob is i have no experience with databases (that's right, none whatsoever)

  6. #6
    FWS Addict atlas has a spectacular aura aboutatlas has a spectacular aura about atlas's Avatar
    Join Date
    Nov 2000
    Posts
    501
    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



  7. #7

    Say...

    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

  8. #8
    WWWBoard... hmmm
    well it sounds like a Message Boards name but i'll check it out...

  9. #9

    It is...

    But it's so editable it can be customized to fit what you were asking for.

    ~Aaron

  10. #10
    NLC Chicken is an unknown quantity at this point Chicken's Avatar
    Join Date
    Oct 2000
    Location
    Southern Cali
    Posts
    2,614
    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"); ?>

  11. #11
    Pro Member jw is an unknown quantity at this point jw's Avatar
    Join Date
    Oct 2000
    Location
    Texas
    Posts
    285
    <? require("head.html");
    require("file.txt");
    require("foot.txt");
    ?>

    should do it if thats all you wanted...

  12. #12
    FWS Addict atlas has a spectacular aura aboutatlas has a spectacular aura about atlas's Avatar
    Join Date
    Nov 2000
    Posts
    501

    Cool

    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

  13. #13
    Pro Member jw is an unknown quantity at this point jw's Avatar
    Join Date
    Oct 2000
    Location
    Texas
    Posts
    285
    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.

  14. #14
    FWS Addict Koolguy is an unknown quantity at this point Koolguy's Avatar
    Join Date
    Oct 2000
    Location
    Canada
    Posts
    934
    Also if you have a fast server it can go as low as 25ms.
    koolplace\dot\com - an amazingly awesome, pointless site

  15. #15
    FWS Addict atlas has a spectacular aura aboutatlas has a spectacular aura about atlas's Avatar
    Join Date
    Nov 2000
    Posts
    501
    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.
    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.

    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]

Closed Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts