Page Index Toggle Pages: [1] 2 
Topic Tools
Hot Topic (More than 10 Replies) Install PHP Warcraft III Replay Parser!!! Help (Read 7377 times)
tfq
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 1
Joined: Jan 30th, 2005
Install PHP Warcraft III Replay Parser!!! Help
Jan 30th, 2005 at 6:32am
Post Tools
Hi all

Plz helpme!!!

I dont know install your script!!!
I need put in mi site but i dont no how install!!

Helpme plz

Thx

sry, mi english is sux  Undecided
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #1 - Mar 14th, 2005 at 4:14pm
Post Tools
Error: not enough data.
  
Back to top
WWWICQ  
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #2 - May 3rd, 2005 at 8:48am
Post Tools
ok, im have the same problem, but i have more information.... in my case....i have apache 2.x runing in my machine, php 5.03, but i dont know what should i do for to run the script example.php, in my page i have moodle install, and for to configure it i haved to configured some thinks about apache and php, but i dont know what should i configure for to run the script, what should i create (folders, archives, etc..), when i run the script, i have this error....well all the page have error, nothing is good , only show the php code in the page etc, the first error is : 1|1| Replay folder contains no replays!, in the example scipt i configure the path of the replays, and the other path, the text path, i put the same in both.....what should i do?, i other post comment that i have to create the "database" folder because the sealize() function, but nothing happend :/, my replays are in a partition of my disk and i use the path : 'D:/replays/', what else??

sorry for my english plz, thx for all, and my congratulations for the script and all the people that work on it, for the archives, w3g_actions etc, thx for all, im not an expert on ensambler languaje but i understand.....thx for all
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #3 - May 3rd, 2005 at 9:03am
Post Tools
It would be best if you gave me the link to your server. If you don't have a public IP, then paste all the errors here.
  
Back to top
WWWICQ  
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #4 - May 3rd, 2005 at 9:11am
Post Tools
1|1| Replay folder contains no replays!

'); } } else { echo('
Can\'t read replay folder!

'); } // listing replays - short info if (!$id && !$_FILES['replay_file']) { echo('
index of '.$w3g_path.'
'.$i.' total
'); ?> 
Check your own replay!
File:  Gateway:  Lordaeron Azeroth Northrend Kalimdor   
'.$replay_file.' » download('.round(filesize($w3g_path.$replay_file.'.w3g')/1024).' KB)
'); $txt_file = fopen($txt_path.$replay_file.'.txt', 'r'); flock($txt_file, 1); $replay = unserialize(fgets($txt_file)); flock($txt_file, 3); fclose($txt_file); $i = 1; foreach ($replay->teams as $team=>$players) { if ($team !== 12) { echo('team '.$i.': '); foreach ($players as $player) { echo(' '); if ($player['race'] == 'Random') { echo('» '); } echo(''.$player['name'].' ('.round($player['apm']).' APM)'); } echo('
'); $i++; } } $temp = strpos($replay->game['map'], ')')+1; $map = substr($replay->game['map'], $temp, strlen($replay->game['map'])-$temp-4); $version = sprintf('%02d', $replay->header['major_v']); echo($replay->game['type']); if ($replay->game['referees'] == 'Yes') { echo(' with Referees'); } elseif ($replay->teams['12']) { echo(' with Observers'); } echo(' | '.$map.' | '.convert_time($replay->header['length']).' | v1.'.$version.' '.$replay->header['ident'].''); } echo(''); // details about the replay } else { $pos = array_search($id, $replays); $prev = $replays[$pos-1]; $next = $replays[$pos+1]; echo(' 
'.$id.' details
« prev index next » 
'); if (file_exists($txt_path.$id.'.txt')) { $txt_file = fopen($txt_path.$id.'.txt', 'r'); flock($txt_file, 1); $replay = unserialize(fgets($txt_file)); flock($txt_file, 3); fclose($txt_file); } elseif ($id) { $replay = new replay($w3g_path.$id.'.w3g'); } elseif ($_FILES['replay_file']['tmp_name']) { $replay = new replay($_FILES['replay_file']['tmp_name']); $gateway = $_POST['gateway']; } else { echo('No replay file given!'); $error = 1; } if (!$error) { if ($replay->errors) { echo('
Warning! The script has encountered some errors when parsing the replay. Please report them to the author. » details

basicly is like that all the page
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #5 - May 3rd, 2005 at 9:18am
Post Tools
Uh... pretty weird. Seems like PHP stops parsing the file after showing an error. Have you changed anything in example.php? That "1|1| " looks suspicious...
Try reinstalling PHP or installign a 4.x version.
  
Back to top
WWWICQ  
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #6 - May 3rd, 2005 at 9:24am
Post Tools
i think is gonna be the version, but is strange, because i have many thinks running on this server, and dont know what happend, let me pass u the link

upn.httpserve.com/moodle   this page work well
upn.httpserve.com/temp    this doesnt

where should i put the replays and the database folder?, in the same path of the page??? or somethink?
  
Back to top
 
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #7 - May 3rd, 2005 at 9:26am
Post Tools
lol sorry is upn.servehttp.com/moodle and temp
no httpserve
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #8 - May 3rd, 2005 at 9:40am
Post Tools
Have you used any Microshit software to edit parser's php files? If yes then make sure you haven't saved those files as UTF-8 with signature. Pure UTF-8 is OK but Microshit's signature may ruin everything.
  
Back to top
WWWICQ  
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #9 - May 3rd, 2005 at 9:48am
Post Tools
i use notepad++ v 2.9 (http://notepad-plus.sourceforge.net/es/site.htm) i saved the files like ANSI format, now, i saved with UTF-8 like u said me, but nothing happend....:S, any comments, i think is gonna be the version, and if is true, is gonna be sad, cos is my first time with php, and thinked start with the last version, :S but, well, im going to change it to 4.x or somethink..... unless u tell me how to fix it with this version, any archive or command in php, like globlals on, etc... that should i active...anyway thx for all.
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #10 - May 3rd, 2005 at 9:51am
Post Tools
Try doing one more thing - download my parser once again and put all the files into the server directory once again without changing anything in them. Then check if the script still displays its own source.
  
Back to top
WWWICQ  
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #11 - May 3rd, 2005 at 9:56am
Post Tools
ok master yoda.....downloading...should i put the path of my web directory??..
  
Back to top
 
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #12 - May 3rd, 2005 at 9:58am
Post Tools
well the 1|1| think change Tongue, is better dont u?
  
Back to top
 
IP Logged
 
KarOn
Peon
*
Offline


I love YaBB 1G - SP1!

Posts: 17
Joined: May 3rd, 2005
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #13 - May 3rd, 2005 at 10:04am
Post Tools
i try to reproduce the 1|1| with a copy of an archive that i modified, but doesnt work  ??? , why occur this?  Shocked
  
Back to top
 
IP Logged
 
Julas.wtfwrongpass
Grunt
**
Offline



Posts: 84
Joined: May 11th, 2004
Re: Install PHP Warcraft III Replay Parser!!! Help
Reply #14 - May 3rd, 2005 at 10:08am
Post Tools
PHP simply doesn't parse the file...
OK, it's the last thing I can think of - change all the "<?" to "<?php" or change the proper setting in your php.ini to allow "<?".
  
Back to top
WWWICQ  
IP Logged
 
Page Index Toggle Pages: [1] 2 
Topic Tools