html to php help

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • John

    html to php help

    Hello,


    I have a html message board / forums and would like to take the last
    message posted and put it on the front of my website somehow. Does
    anyone know of a program that would do this automatically?



  • Bosconian

    #2
    Re: html to php help

    "John" <John_nospam@nn nnnnnnn.nowhere wrote in message
    news:725nm2d35d kmq8riffh9v3t5t gk4cb0381@4ax.c om...
    Hello,
    >
    >
    I have a html message board / forums and would like to take the last
    message posted and put it on the front of my website somehow. Does
    anyone know of a program that would do this automatically?
    >
    >
    >
    I'd consult the developers of your forum package. More than likely they
    already have a snippet of code to accomplish such a task.


    Comment

    • Christoph Burschka

      #3
      Re: html to php help

      John schrieb:
      Hello,
      >
      >
      I have a html message board / forums and would like to take the last
      message posted and put it on the front of my website somehow. Does
      anyone know of a program that would do this automatically?
      >
      >
      >
      Question: What is an "html message board"? Surely the server side is
      powered with PHP or CGI? Where are the posts stored?

      I've done something this before with a message board that ran on another
      site and that didn't have a newsfeed (I wrote something that scraped the
      posts and returned an RSS feed). I don't recommend this if there is any
      other option.

      In your case, look first at what the supplier of your board software has
      to offer - possibly there is already a way to export an RSS newsfeed.
      It's very easy to use such a newsfeed to put the posts on your front page.

      The second option is to fetch the posts directly from the database (if
      one exists - I know some forums that use flat files, and maybe that's
      what you mean by "html").

      --
      CB

      Comment

      • John

        #4
        Re: html to php help

        On Tue, 28 Nov 2006 09:51:41 +0100, Christoph Burschka
        <christoph.burs chka@rwth-aachen.dewrote:
        >John schrieb:
        >Hello,
        >>
        >>
        >I have a html message board / forums and would like to take the last
        >message posted and put it on the front of my website somehow. Does
        >anyone know of a program that would do this automatically?
        >>
        >>
        >>
        >Question: What is an "html message board"? Surely the server side is
        >powered with PHP or CGI? Where are the posts stored?
        >
        >I've done something this before with a message board that ran on another
        >site and that didn't have a newsfeed (I wrote something that scraped the
        >posts and returned an RSS feed). I don't recommend this if there is any
        >other option.
        >
        >In your case, look first at what the supplier of your board software has
        >to offer - possibly there is already a way to export an RSS newsfeed.
        >It's very easy to use such a newsfeed to put the posts on your front page.
        >
        >The second option is to fetch the posts directly from the database (if
        >one exists - I know some forums that use flat files, and maybe that's
        >what you mean by "html").


        Hi - you are right it's a flat file type of message boards that stores
        the html files in a folder on my server. Therefore, there is no
        database used. The author doesn't have an rss feed for this board.

        Comment

        • Toby Inkster

          #5
          Re: html to php help

          Christoph Burschka wrote:
          The second option is to fetch the posts directly from the database (if
          one exists - I know some forums that use flat files, and maybe that's
          what you mean by "html").
          Flat files *are* a database -- not a full-fledged ACID-compliant SQL
          RDBMS, but a database all the same. And the data can be retrieved from
          flat files fairly easily using fopen() and so forth.

          --
          Toby A Inkster BSc (Hons) ARCS
          Contact Me ~ http://tobyinkster.co.uk/contact

          Comment

          Working...