Changeset 1796
- Timestamp:
- 2006-01-12 15:36:58 (3 years ago)
- Files:
-
- phpannodex/trunk/CGI (deleted)
- phpannodex/trunk/README (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
phpannodex/trunk/README
r1790 r1796 2 2 ------------------- 3 3 4 phpannodex-cgi has been tested specifically for the following versions 5 of PHP and Apache, but should work with any PHP 5 and Apache 2. 4 phpannodex has been tested specifically for the following versions 5 of PHP and Apache, but should work with any PHP 5 and Apache 2. This 6 installation, relying as it does on make, is tailored for *nix systems. 6 7 7 8 * PHP 5.0.5 8 9 * Apache 2.0.55 9 10 11 10 12 What does it do? 11 13 ---------------- 12 14 13 phpannodex-cgi provides full support for Annodex.net media. For more details 15 phpannodex is an extension for PHP that provides object oriented PHP wrappings 16 for libannodex, a C library for manipulating Annodex media. For more details 14 17 about the annodex format, see http://www.annodex.net/ 15 16 phpannodex-cgi is a handler for type application/x-annodex. It provides the17 following features:18 19 * dynamic generation of Annodex media from CMML files.20 21 * handling of timed query offsets, such as22 23 http://media.example.com/annodex/fish.anx?t=npt:01:20.824 25 * dynamic retrieval of CMML summaries, if the Accept: header26 prefers type text/x-cmml over application/x-annodex.27 18 28 19 29 20 Building and installing 30 21 ---------------------- 31 * ) cd to the "phpannodex-cgi.X.X/src".32 * )"phpize"33 * )"./configure"34 * )Add "-lannodex" to the CFLAGS of the Makefile.35 * )"make install"36 * )restart Apache22 * cd to the "src" directory. 23 * "phpize" 24 * "./configure" 25 * Add "-lannodex" to the CFLAGS of the Makefile. 26 * "make install" 27 * restart Apache 37 28 38 29 This will install the phpannodex extension core. 39 30 40 *) Copy the "phpannodex-cgi.X.X/phpannodex" into a 41 directory in php's include path. This will usually be 42 "/usr/local/lib/php" on *nix systems. 31 * Copy the "phpannodex" directory into php's include 32 path. This will usually be "/usr/local/lib/php" on *nix systems. 43 33 44 34 This will make the phpannodex classes visible to all your php … … 46 36 47 37 48 Configuration49 -------------50 51 For the cgi to work correctly, Apache must know to use it to respond52 to requests from ".anx" files.53 54 *) Open "phpannodex-cgi.conf" in a text editor, and replace CGI_DIR with55 the full path of the "phpannodex-cgi-X.X/phpannodex-cgi" directory.56 *) Copy "phpannodex-cgi.conf" into Apache's "conf.d" directory,57 probably "/etc/apache2/conf.d/".58 *) Restart Apache59 60 Requests for ".anx" files should now be answered by the cgi.