[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] gamecnts.php
On Thu, 29 Sep 2005, Robert Barrell wrote:
> Paul van Wamelen wrote:
>
> >List.php?Go reads PBMHOME/etc/Go.list to count the number of games.
> >Go.list gets modified by UpdateGameList in game.cpp everytime someone
> >makes a move. You probably don't have entries in Go.list on your
> >server yet?
> >
> No. It's not that - there are entries there. In fact, I did get a
> little further. I discovered that the paths were all over the place,
> and not at all using PBMHOME.
Right. They are hard coded as home/PBM/pbmserv. So if you just search for
that string in the .php files and replace with your local absolute path
you should be in business. Well...
pbmwrap isn't clear either. On Richard's server it's in
/home/PBM/pbmserv/bin/pbmwrap
The source is on the ftp site under graphics. Edit the hard coded
paths, compile using gcc and put in the bin directory...
Permissions can also be a problem...
> I have had to edit a LOT of files to
> correct the paths, but still don't have it quite working yet. I've only
> been able to get as far as, for example, "Go game 101 does not exist."
> After that, the paths seemed to become even more labyrinthine, with no
> mention, anywhere, of PBMHOME.
>
> From within my main directory, I have a "pbmserv" subdirectory.
> Underneath that, are bin, data, etc, games, help, history, newgames,
> ratings, src, standings, and tmp (all at the same level). In the games
> directory, there is a subdirectory for each of the games I'm testing,
> with the first letter of the name capitalized. Within each game
> directory are the numbered game files,
Sounds right.
> the compiled,
> all-lower-case-named program for email operation (which all work fine
> from the command line with a substitute for sendmail to cat to the tty),
On Richrd's server these are in the bin directory.
> and the php program for the game, for which the first letter of the name
> is capitalized.
Locally it's: public_html/Go/Go.php