The online racing simulator
Searching in All forums
(2 results)
doowle
S2 licensed
Quote from BOSCHO :Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in C:\Program Files\xampp\htdocs\server\server.php on line 182

how to fix that ?

BOSCHO i had the same problem, i'm nor programmer and have little php skills but i think it has something to do with the script not being able to access the file.

I got around this by removing this line in server.php

$filepath[$c] = $serverprot[$c] . "://" . $ftpuser[$c] . ":". $ftppw[$c] . "@" . $serverip[$c] . $hostpath[$c] . "/host" . $lfsport[$c] . ".txt";

and putting this line in _data_config.php in the connention info for Server 1

$filepath[0] = "/lfs/host63392.txt";

I can do this as the php scripts are running on the same server as the LFS dedicated server (that may not be the case for you)


I also had to change;
die "File access error!";

for
echo "File access error!";
exit();

In server.php

Not really a fix, but certainly a work around!

Doowle
Last edited by doowle, .
doowle
S2 licensed
Hi,

This is a great mod, thanks for the work you have put in here.

I have one or two questions, I appreciate that I may be entering "numpty zone" tho...

I have LFSStats installed and working with my LAN only Dedicated Server - that worked fine - thanks
  1. By default the CFG file puts the results in a subdirectory of BIN, this causes the links for results3.css and image to fail - is this something i've done in error or is this intentional - if so for what reason.
  2. Is there an documented method of getting the generated files to appear as links on a web page.
If there is a discussion thread i've missed that goes over this, just kick me and point me in the right direct

cheers,

Doowle
Last edited by doowle, .
FGED GREDG RDFGDR GSFDG