[Other] PHP Dota Replay Parser (CDP)

Discussion in 'Programming' started by Seven, Jun 11, 2009.

  1. jezuz

    jezuz New Member

    Ye, it's bloody well designed bloor. Wish i had those skills tt.
  2. bloor

    bloor Active Member

  3. MauranKilom

    MauranKilom Well-Known Member

    That parser looks really awesome! The only downside is that it loads kind of slowly...
  4. bloor

    bloor Active Member

    It loads slow the 1st time. Aftewards, the page is cached and loads much faster.
    Had no choice, the loading screen is there to make sure all the resources are loaded and the page will be fully-displayed afterwards. I personally don't like pages loading element by element in front of my eyes.

    As for the slow animations and sliders there will be a small button available to disable all those fancy eye-candy effects
  5. MauranKilom

    MauranKilom Well-Known Member

    Well it didn't load considerably faster even on the fourth time :/
    I mean, yes, it did load a bit faster, but not much...
  6. bloor

    bloor Active Member

    It highly depends on browser also..
    The page loading speed is:

    1. Chrome
    2. Opera
    3. Mozzila

    Also the current server is in Romania, and i`m pretty sure it;s not much of a server, so probably the connection is very low to your side of the globe. I think the site loads aprox. 4-5MB of resources.

    -- anyhow 10x for the feedback. I`'ll include this to be fixed in the optimization phase. Much appreciated.
  7. MauranKilom

    MauranKilom Well-Known Member

    I lol'd.
  8. bloor

    bloor Active Member

    No rlly. My webhosting package (1.5E /month) has

    100MB bandwith -- internal
    and only
    10MB bandwith -- external

    So it's pretty normal for outsiders to load page slower. When finished will move to a better server.
  9. dek156

    dek156 New Member

    Delete pl
    Last edited: Mar 3, 2013
  10. JeremyJohn

    JeremyJohn Member

  11. dek156

    dek156 New Member

    Delete pl
    Last edited: Mar 3, 2013
  12. dek156

    dek156 New Member

    Delete pl
    Last edited: Mar 3, 2013
  13. dek156

    dek156 New Member

    Delete pl
    Last edited: Mar 3, 2013
  14. vantung_311

    vantung_311 New Member

    you can share the for proving full index code post replay dota are not
  15. DotaBattleNet

    DotaBattleNet New Member

  16. AucT

    AucT Well-Known Member

    I think they add to database some data when sm1 uploaded replay

    create db with table replays with 4 varchar/text columns title, date, saver, file
    in the upload_replay.php on line 154 after if print info add

    $mysqli = new mysqli('localhost''root''''cdparser');
    $mysqli->query('INSERT INTO replays VALUES ("'.$title.'", "'.date('Y-m-d H:i:s').'", "'.$replay->game['saver_name'].'", "'.$replayFile.'")');
    and create database.php or where you want to get list of replays
    <tr><th>Game title<th>Date<th>Saver<th>View<th>DOwnload
    = new mysqli('localhost''root''''cdparser');
    $result $mysqli->query("Select * FROM replays");

    while (
    $row $result->fetch_object()) {
            <td><a href='view_replay.php?file=
            <td><a href='download_replay.php?file=
    and change ('localhost', 'root', '', 'cdparser') to ('your host', 'user', 'password', 'database name')
    Last edited: Mar 11, 2013
  17. AbsoluteMSTR

    AbsoluteMSTR New Member

    Try setting up http://www.cloudflare.com/. Its free and thats what I have setup at dotaparser.net. Will help page load time on a global scale then just in romania (if thats where you host it).
  18. bloor

    bloor Active Member

    Have it in my agenda. Will do after i change webhost to a professional one.
  19. joealonez

    joealonez New Member

    Fatal error: Class 'mysqli' not found in ........
  20. DotaBattleNet

    DotaBattleNet New Member

    could someone update the XML for the latest map ( dota 6.78b )