Please turn on javascript in your browser to play chess.
Developers Forum

Developers Forum

  1. 16 Oct '03 01:32
    Is there any way to pull data from RHP into an outside clan website? Or does it already eexist... This would be a great feature...
  2. Standard member gregoftheweb
    The Great Gonzo
    16 Oct '03 16:31 / 1 edit
    We've just been talking about it here: http://www.redhotpawn.com/board/showthread.php?id=6886

    It appears that something is in the works. Once its available, I can write both a server side script and I should be able to write a client side script as well that will allow you to import the exposed features onto your website.

    Russ? que paaa?
  3. 16 Oct '03 18:12
    That rocks man!
  4. Standard member thire
    Xebite
    18 Oct '03 14:56
    could it be possible to import also the fen strings and the pgn files of the games?
    th
  5. Standard member thire
    Xebite
    18 Oct '03 19:01
    @gregoftheweb:
    you would write an asp script, or anything in php?

    is it possible to make an evaluation of MyGames as I described in the site ideas forum?

    th
  6. Subscriber Russ
    RHP Code Monkey
    18 Oct '03 23:50 / 1 edit
    I have made some RHP data available in XML already.

    'My Games' is next on my list, but I can do other stuff too if people want it.

    Aarony, do you have any scripting languages available to you on your site? If not, then the work I'm going to do will be of no use to you.

    -Russ
  7. Standard member thire
    Xebite
    19 Oct '03 22:28
    Originally posted by Russ
    I have made some RHP data available in XML already.

    'My Games' is next on my list, but I can do other stuff too if people want it.

    Aarony, do you have any scripting languages available to you on your site? If not, then the work I'm going to do will be of no use to you.

    -Russ
    WOW
    all this sounds amazing (for me)... and its typical RHP and Russ: just perfect! we want it, we get it...
    I am curious for further details,
    th
  8. 20 Oct '03 02:23
    I can run php and perl
  9. Standard member gregoftheweb
    The Great Gonzo
    20 Oct '03 17:01
    Can you email any details right now Russ or am I jumping the gun?

    g
  10. 27 Oct '03 17:47
    stupid question...i was wondering how do you run queries on XML stuff?
  11. Standard member gregoftheweb
    The Great Gonzo
    27 Oct '03 23:46 / 2 edits
    Originally posted by Black Lung
    stupid question...i was wondering how do you run queries on XML stuff?
    Well typically you don't want to do MAJOR searching on an xml document. You want to do the primary data mining in the database itself. Any xml handed off to the webserver or the client should be a subset that can be easily handled by the webserver or the client.

    Caveat: I am talking from an MSXML perspective but I believe in its general sense this should carry over to non Microsoft xml parsers as well.

    The syntax used is xpath. You implement it two ways, most commonly and fastest is within an xsl transform as the xml parsing engine is optimized to handle it in that manner. You can also act on the xml document directly with the xml DOM.

    For instance:
    <root>
    <node id="1" />
    <node id="2" />
    </root>

    If you wanted to find the node with id="2", you would do it in two ways.

    in xsl:
    <xsl:value-of select = "node[@id='2']" />

    in c#:
    oNode = oXMLDOM . DocumentElement . SelectSingleNode ("node[@id='2']" )

    I could wax poetic about xml if allowed.
  12. Standard member thire
    Xebite
    28 Oct '03 07:34
    any help for parsing xml docs with php?
    th
  13. Standard member gregoftheweb
    The Great Gonzo
    28 Oct '03 21:03
    google is your friend as always.

    I just typed in xml php and a whole buncha links popped up. This one looked pretty promising.

    http://www.xml.com/pub/a/2003/06/18/php-xml.html

    There looks like there are custom methods involved with using PHP.

    And this gives you a very quick and dirty tutorial on xslt/xml transformations.

    http://codewalkers.com/tutorials/51/1.html
  14. Standard member thire
    Xebite
    29 Oct '03 09:00
    thank you!
    th
  15. Standard member thire
    Xebite
    04 Nov '03 15:25
    Originally posted by Russ (19 Oct)
    I have made some RHP data available in XML already.
    'My Games' is next on my list, but I can do other stuff too if people want it.
    so, any news here?
    th