Results 1 to 6 of 6

Thread: a generated html page of links?

  1. #1
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin a generated html page of links?

    let's say, hypothetically, I had several folders of files I want to host online. Instead of writing 200 lines of code, or whatever it is (even though most of the lines are duplicate except for the numbers), could I generate a webpage which has the files all linked?

    k thx bai

  2. #2
    Not responsible for WWI Citizen Bleys's Avatar
    Join Date
    Feb 2000
    Location
    The Wired
    Posts
    8,502
    Articles
    7
    Blog Entries
    60

    FFXIV Character

    Bleys Maynard (Sargatanas)
    Contributions
    • Former Administrator
    • Former Cid's Knight

    Default

    It's possible, but I don't know an algorithm for it off the top of my head.

    Of course, if the files are named sequentially (i.e., image0.gif, image1.gif, image2.gif) etc., it would be PAINFULLY easy to write a program to generate the HTML page in Pascal...but the HTML wouldn't be generated server-side, you'd have to generate it and then upload it, and then re-generate the page every time you wanted to update it. PITA factor = high.

  3. #3
    Prinny God Recognized Member Endless's Avatar
    Join Date
    Aug 2000
    Location
    Prinny Moon
    Posts
    2,641
    Contributions
    • Former Cid's Knight

    Default

    Or you can try PHP.
    It has directory <a href="http://www.php.net/manual/en/ref.dir.php"> functions</a>.

    And then there is Death

  4. #4
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    Perl would do it. Learn Perl. Use the CGI module.

  5. #5
    Your very own Pikachu! Banned Peegee's Avatar
    Join Date
    Mar 2001
    Posts
    19,488
    Blog Entries
    81

    Grin

    Bleys, the hosting is on my computer so updating is a cynch....synch...something easily accomplishable.

    I'll take a look at perl. php sounds awfully difficult.

  6. #6
    ORANGE Dr Unne's Avatar
    Join Date
    Dec 1999
    Posts
    7,394
    Articles
    1
    Contributions
    • Former Administrator
    • Former Developer
    • Former Tech Admin

    Default

    PHP is probably easier for something like this. But oh so much less fun.

Posting Permissions

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