[pmwiki-users] Defining and displaying chess diagrams in WikiPages

Patrick R. Michaud pmichaud at pobox.com
Wed Nov 23 15:28:39 CST 2005


On Wed, Nov 23, 2005 at 09:43:50PM +0100, Christian Bartolomaeus wrote:
> 
> Trying phpinfo() I didn't see a "gd" section (I guess, it would look
> like the sections "bcmath" or "bz2":

Yes, I'm guessing it's not there then.  

> Maybe the "Configure Commands" of phpinfo() give more informations?
> There are some notions of "gd" at least but none of "gif":
> 
>   '--with-zlib-dir=/usr' '--with-gd=shared,/usr'

Well, that '--with-gd=...' parameter leads me to believe that
PHP has been compiled to use gd if it's available.  So, I'm guessing
that the gd library simply hasn't been loaded onto your server,
or something else bizarre is going on.

> I searched the web and it seems that the Debian Sarge installation of
> PHP is not linked against the relevant library. So one option would be
> to recompile PHP, right?

Yes.  But another option is to download the new version of the chess.zip
recipe, which provides a (:chessboard:) markup that builds the
display using an HTML table.  This doesn't require any gd support 
from PHP.  :-) :-)  

See also the new update at http://www.pmwiki.org/wiki/Cookbook/ChessMarkup;
I still need to fix up the descriptions a bit.  I'm thinking it's
good to document the existence of the {$FEN} notation, but now it's
not necessary for someone to know anything about FEN or {$FEN}
in order to display chessboards.

Pm




More information about the pmwiki-users mailing list