| 1 | <?xml version="1.0" encoding="UTF-8"?> |
| 2 | <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> |
| 3 | <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"> |
| 4 | <head> |
| 5 | <title>Redland RDF Application Framework - PHP Interface</title> |
| 6 | </head> |
| 7 | <body> |
| 8 | |
| 9 | <h1 style="text-align:center">Redland RDF Application Framework - PHP Interface</h1> |
| 10 | |
| 11 | <h2>Installing the Redland PHP interface</h2> |
| 12 | |
| 13 | <p>This is built if <tt>--with-php</tt> is given to the configure |
| 14 | line. The standard 'make' at the top level will build it.</p> |
| 15 | |
| 16 | <p>You can also compile the PHP interface by hand as follows:</p> |
| 17 | |
| 18 | <pre> |
| 19 | cd php |
| 20 | make |
| 21 | |
| 22 | # optional |
| 23 | make check |
| 24 | </pre> |
| 25 | |
| 26 | <p>To install it system wide do this as <em>root</em> (or maybe via |
| 27 | sudo make install). NOTE: This is untested:</p> |
| 28 | |
| 29 | <pre> |
| 30 | root# make install |
| 31 | </pre> |
| 32 | |
| 33 | <p>The PHP interface has been used with PHP 4.3.8, 4.3.3, 4.3.2, |
| 34 | 4.2.2, 4.1.2 and 5.1.2 and is beta quality - has been used in |
| 35 | production.</p> |
| 36 | |
| 37 | |
| 38 | <h2>Redland PHP API Introduction</h2> |
| 39 | |
| 40 | <p>The PHP API is an object-based API with the class names and method |
| 41 | names flattened into PHP procedure names like this: |
| 42 | librdf_<em>class</em>_<em>method</em> - the same names as in the |
| 43 | underlying C API. The object references |
| 44 | become PHP variables.</p> |
| 45 | |
| 46 | <h2>Testing the Redland PHP interface</h2> |
| 47 | |
| 48 | <p>There is not yet an example program to exercise the PHP interface.</p> |
| 49 | |
| 50 | |
| 51 | <hr /> |
| 52 | |
| 53 | <p>Copyright (C) 2002-2007 <a href="http://www.dajobe.org/">Dave Beckett</a>, Copyright (C) 2002-2005 <a href="http://www.bristol.ac.uk/">University of Bristol</a></p> |
| 54 | |
| 55 | </body> |
| 56 | </html> |