This software was developped with Apache 2.2 on Linux but should work on any operating system and web server with a PHP 5 interpreter.
tar xfz phpW2ML-0.3.tar.gz
phpW2ML,
w2mlclient, and w2mldocs.
Copy them to the document root of the web server./var/www/ as document root:cd phpW2ML-0.3; cp -r phpW2ML w2mlclient w2mldocs /var/www/
w2mldocs and *.w2ml files inside
w2mldocs to be read-writable by the PHP interpreter.www-data:cd /var/www; chgrp -R www-data w2mldocs; chmod g+w w2mldocs w2mldocs/*.w2ml
Note: The Unix command line was used in the examples, they have to be adapted for other operating systems.
The phpW2ML archive is made of 3 components distributed in 3 directories:
phpW2ML/w2mlclient/w2mldocs/Note that an .htaccess file is present in the w2mldocs
directory to deny access to W2ML files directly from the HTTP server. W2ML files can
only be read through the phpW2ML processor, and so they cannot be served as raw W2ML.
It means that if your wb configuration allows .htaccess, then access to
http://localhost/w2mldocs/index.w2ml
gives 403 forbidden.
The default configuration in phpW2ML/index.php expects that
w2mlclient and w2mldocs directories are installed in the
document root of the web server.
In phpW2ML/index.php, the path to the w2mldocs directory
is configured by:
define('W2ML_DOC_ROOT', realpath($_SERVER['DOCUMENT_ROOT'].'/w2mldocs').'/');
This path can be freely changed, but the W2ML files distributed with phpW2ML in
w2mldocs expect to find bitmapped fonts under the /w2mldocs/fonts/
URI. Note that W2ML files should be writable by the PHP interpreter, otherwise W2ML
markup modifying files (edition, counter...) becomes ineffective.
In phpW2ML/index.php, the URI of the w2mlclient directory
is configured by:
define('W2ML_CLIENT_URI', '/w2mlclient/');
Last update: 2008-10-15 20:55 UTC |
✉ info@w2ml.org