Developer's Blog
Register Low Fi Mark Forums Read

Reply
 
Thread Tools
Old 02-09-2013, 10:23 AM   #301
jezuz
Member
 
Join Date: Nov 2010
Posts: 2
jezuz is offline

Default PHP Dota Replay Parser (CDP)


Ye, it's bloody well designed bloor. Wish i had those skills tt.
  Reply With Quote
Old 02-10-2013, 12:52 AM   #302
bloor
Member
 
bloor's Avatar
 
Join Date: Jan 2010
Location: Romania [Bucharest]
Posts: 21
bloor is offline
Smile Re: PHP Dota Replay Parser (CDP)

You may take a peek as i finish last things to code for the Beta Release:

http://www.ro-community.com/parser/r...lay=1360460699

BEST WITH CHROME.

PS: it will not be available / compatible for IE usage [i`m really starting an anti-IE campaign with this parser]

PPS: my tiny-skillz are too damn high !
__________________
  Reply With Quote
Old 02-10-2013, 08:51 PM   #303
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,046
MauranKilom is online now
Default Re: PHP Dota Replay Parser (CDP)

That parser looks really awesome! The only downside is that it loads kind of slowly...
__________________
I might edit my p0sts frequently and rapidly after posting.

DotA code of the week:
Jass:
function Func0243 takes nothing returns nothing
  call Func0242()
endfunction

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 02-10-2013, 09:14 PM   #304
bloor
Member
 
bloor's Avatar
 
Join Date: Jan 2010
Location: Romania [Bucharest]
Posts: 21
bloor is offline
Default Re: PHP Dota Replay Parser (CDP)

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
__________________
  Reply With Quote
Old 02-10-2013, 09:18 PM   #305
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,046
MauranKilom is online now
Default Re: PHP Dota Replay Parser (CDP)

Well it didn't load considerably faster even on the fourth time :/
I mean, yes, it did load a bit faster, but not much...
__________________
I might edit my p0sts frequently and rapidly after posting.

DotA code of the week:
Jass:
function Func0243 takes nothing returns nothing
  call Func0242()
endfunction

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 02-10-2013, 09:24 PM   #306
bloor
Member
 
bloor's Avatar
 
Join Date: Jan 2010
Location: Romania [Bucharest]
Posts: 21
bloor is offline
Default Re: PHP Dota Replay Parser (CDP)

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.
__________________
  Reply With Quote
Old 02-10-2013, 09:36 PM   #307
MauranKilom
Member
 
MauranKilom's Avatar
 
Join Date: Jan 2010
Location: Germany
Posts: 5,046
MauranKilom is online now
Default Re: PHP Dota Replay Parser (CDP)

Quote:
Originally Posted by bloor View Post
the connection is very low to your side of the globe.
I lol'd.
__________________
I might edit my p0sts frequently and rapidly after posting.

DotA code of the week:
Jass:
function Func0243 takes nothing returns nothing
  call Func0242()
endfunction

Fix OD combo! IMPLEMENTED!
  Reply With Quote
Old 02-10-2013, 09:39 PM   #308
bloor
Member
 
bloor's Avatar
 
Join Date: Jan 2010
Location: Romania [Bucharest]
Posts: 21
bloor is offline
Default Re: PHP Dota Replay Parser (CDP)

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.
__________________
  Reply With Quote
Old 02-24-2013, 03:27 AM   #309
dek156
Member
 
Join Date: Feb 2013
Posts: 4
dek156 is offline
Default Re: PHP Dota Replay Parser (CDP)

Delete pl
  Reply With Quote
Last edited by dek156; 03-03-2013 at 01:32 AM.
Old 02-24-2013, 05:27 AM   #310
JeremyJohn
Member
 
JeremyJohn's Avatar
 
Join Date: Sep 2009
Location: Malaysia
Posts: 23
JeremyJohn is offline
Default Re: PHP Dota Replay Parser (CDP)

Quote:
Originally Posted by dek156 View Post
Help Me

error 1

http://oi46.tinypic.com/2iauefr.jpg

error 2

clicked view detallais

http://oi45.tinypic.com/2u95wxw.jpg

Let me guess you forgot to install PHP?
__________________

Regards
Jeremy John

  Reply With Quote
Old 02-24-2013, 04:40 PM   #311
dek156
Member
 
Join Date: Feb 2013
Posts: 4
dek156 is offline
Default Re: PHP Dota Replay Parser (CDP)

Delete pl
  Reply With Quote
Last edited by dek156; 03-03-2013 at 01:31 AM.
Old 02-27-2013, 01:53 AM   #312
dek156
Member
 
Join Date: Feb 2013
Posts: 4
dek156 is offline
Default Re: PHP Dota Replay Parser (CDP)

Delete pl
  Reply With Quote
Last edited by dek156; 03-03-2013 at 01:31 AM.
Old 02-28-2013, 09:39 PM   #313
dek156
Member
 
Join Date: Feb 2013
Posts: 4
dek156 is offline
Default Re: PHP Dota Replay Parser (CDP)

Delete pl
  Reply With Quote
Last edited by dek156; 03-03-2013 at 01:31 AM.
Old 03-03-2013, 11:00 AM   #314
vantung_311
Member
 
Join Date: Oct 2010
Posts: 1
vantung_311 is offline
Default Re: PHP Dota Replay Parser (CDP)

you can share the for proving full index code post replay dota are not
  Reply With Quote
Old 03-08-2013, 08:02 AM   #315
DotaBattleNet
Member
 
Join Date: Dec 2012
Posts: 1
DotaBattleNet is offline
Default Re: PHP Dota Replay Parser (CDP)

Hey everyone,
could someone share scripts to view all of Uploaded Replay/Archieve/Database Replay please...

like one of this
http://rankedgamingparser.com/replaydb.php
http://dotaparser.net/archive
  Reply With Quote
Old 03-11-2013, 07:42 PM   #316
AucT
Member
 
AucT's Avatar
 
Join Date: Aug 2009
Posts: 681
Blog Entries: 21
AucT is offline
Default Re: PHP Dota Replay Parser (CDP)

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

PHP Code:
$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.'")');
$mysqli->close(); 
and create database.php or where you want to get list of replays
PHP Code:
<table>
<tr><th>Game title<th>Date<th>Saver<th>View<th>DOwnload
<?php
$mysqli 
= new mysqli('localhost''root''''cdparser');
$result $mysqli->query("Select * FROM replays");

while (
$row $result->fetch_object()) {
        echo 
"
        <tr><td>
$row->title
        <td>
$row->date
        <td>
$row->saver
        <td><a href='view_replay.php?file=
$row->file'>View</a>
        <td><a href='download_replay.php?file=
$row->file'>Download</a>";
    }
$mysqli->close();
?>
</table>
and change ('localhost', 'root', '', 'cdparser') to ('your host', 'user', 'password', 'database name')
  Reply With Quote
Last edited by AucT; 03-11-2013 at 08:37 PM.
Old 03-12-2013, 01:30 PM   #317
AbsoluteMSTR
Member
 
Join Date: Aug 2009
Posts: 2
AbsoluteMSTR is offline
Default Re: PHP Dota Replay Parser (CDP)

Quote:
Originally Posted by bloor View Post
You may take a peek as i finish last things to code for the Beta Release:

http://www.ro-community.com/parser/r...lay=1360460699

BEST WITH CHROME.

PS: it will not be available / compatible for IE usage [i`m really starting an anti-IE campaign with this parser]

PPS: my tiny-skillz are too damn high !
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).
  Reply With Quote
Old 03-18-2013, 06:50 PM   #318
bloor
Member
 
bloor's Avatar
 
Join Date: Jan 2010
Location: Romania [Bucharest]
Posts: 21
bloor is offline
Default Re: PHP Dota Replay Parser (CDP)

Quote:
Originally Posted by AbsoluteMSTR View Post
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).
Have it in my agenda. Will do after i change webhost to a professional one.
__________________
  Reply With Quote
Old 04-14-2013, 04:52 PM   #319
joealonez
Member
 
Join Date: Jan 2011
Posts: 4
joealonez is offline
Default Re: PHP Dota Replay Parser (CDP)

Quote:
Originally Posted by AucT View Post
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

PHP Code:
$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.'")');
$mysqli->close(); 
and create database.php or where you want to get list of replays
PHP Code:
<table>
<tr><th>Game title<th>Date<th>Saver<th>View<th>DOwnload
<?php
$mysqli 
= new mysqli('localhost''root''''cdparser');
$result $mysqli->query("Select * FROM replays");

while (
$row $result->fetch_object()) {
        echo 
"
        <tr><td>
$row->title
        <td>
$row->date
        <td>
$row->saver
        <td><a href='view_replay.php?file=
$row->file'>View</a>
        <td><a href='download_replay.php?file=
$row->file'>Download</a>";
    }
$mysqli->close();
?>
</table>
and change ('localhost', 'root', '', 'cdparser') to ('your host', 'user', 'password', 'database name')
Fatal error: Class 'mysqli' not found in ........
  Reply With Quote
Reply
  Entertainment Programming


Forum Jump

Thread Tools