View Single Post
Old
  (#6)
{ESW}-=TikiGod=- is Offline
Junior Member
 
Posts: 5
Join Date: Jun 2003
  Send a message via AIM to {ESW}-=TikiGod=-  
Default 05-13-2004, 07:37 PM

I am trying to work with MOHSTATS like you used on that website but I keep getting errors when I try to parse it. I go to the ocmmand prompt and its like this:
C:\mohstats>C:\php\php.exe -q mohstats.php qconsole.log
THEN i get :


Parse error: parse error, unexpected T_STRING in C:\mohstats\config.php on line 22

Sometimes it is line 25 instead of 22

Do you know what would cause this? I will be running it on WinXP (home computer, server computer, etc)... my config.php file is like this (the first couple lines only


<?php

/****
mohstats configuration

$Id: config.php,v 1.30 2004/04/01 22:07:42 colino Exp $
****/

/* set this to 'mohaa', 'spearhead', 'breakthrough', or 'callofduty' */
$game = 'spearhead';

/* print status messages as mohstats.php is running */
$status = true;

/* output directory */
$dir = 'C:\mohstats\output';

/* cache file */
$cache = 'C:\mohstats\cache\';

/* url to base directory of website: must include trailing slash */
$html_base = 'C:\mohstats\output\';

/* title */
$html_title = 'mohstats';

/* path to directory containing templates */
$include = 'C:\mohstats\include\';

/* Extension of generated files */
$extension = 'html';

/* Make alpha.html containing list of all players seen if set.
Warning: this will be huge if your server is somewhat active */
$generate_alpha = true;

/* Add player search box on index page: requires PHP installed on
webserver, and $cache must not be a relative path */
$generate_search = false;

------------------------------

Any idea what may be causing the error? Do you know will I be able to view the output on my computer without having to upload the files anywhere? That way I don't need to buy webspace and can jsut sent the html files or whatever to my friends or just to see the results myself at my house?

Thank you,
steve
  
Reply With Quote