Subversion Repositories cheapmusic

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
98 - 1
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?>
2
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" /><title>1.2. Installing</title><link rel="stylesheet" type="text/css" href="phplotdoc.css" /><meta name="generator" content="DocBook XSL Stylesheets V1.78.1" /><link rel="home" href="index.html" title="PHPlot Reference Manual" /><link rel="up" href="install.html" title="Chapter 1. PHPlot Installation" /><link rel="prev" href="install.html" title="Chapter 1. PHPlot Installation" /><link rel="next" href="install-next.html" title="1.3. Next Step" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">1.2. Installing</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="install.html">Prev</a> </td><th width="60%" align="center">Chapter 1. PHPlot Installation</th><td width="20%" align="right"> <a accesskey="n" href="install-next.html">Next</a></td></tr></table><hr /></div><div class="sect1"><div class="titlepage"><div><div><h2 class="title" style="clear: both"><a id="install-install"></a>1.2. Installing</h2></div></div></div><p>
3
Unpack the PHPlot distribution into a convenient directory. PHPlot releases
4
are available both as ZIP files, and as gzip-compressed TAR files.
5
Use whichever format is more convenient for you. In the example below, the
6
TAR format is unpacked.
7
</p><pre class="screen">$ tar -xvzf phplot-6.*.tar.gz
8
$ cd phplot-6.*
9
</pre><p>
10
(Use the appropriate file and directory (folder) name.)
11
Check the distribution for README and/or INSTALL files which may contain
12
newer instructions.
13
</p><p>
14
Installation of PHPlot simply involves copying the script files somewhere
15
your PHP application scripts will be able to find them. The scripts are:
16
<code class="filename">phplot.php</code>, the main script file,
17
and <code class="filename">rgb.inc.php</code>, an optional script file containing a
18
large color map.
19
Make sure the protections on these files allow the web server to read them.
20
For example:
21
</p><pre class="screen">$ chmod 644 *.php
22
</pre><p>
23
</p><p>
24
Then, simply copy the files into a directory where PHP scripts
25
will be able to include them.
26
The ideal place is a directory outside your web server
27
document area, and on your PHP include path (that you noted above in
28
the PHP Info report). You can add to the include path
29
in the PHP configuration file; consult the PHP manual for details.
30
For example, if <code class="filename">/usr/local/share/php</code> is on
31
your PHP include path, you can install PHPlot with:
32
</p><pre class="screen">$ cp phplot.php rgb.inc.php /usr/local/share/php
33
</pre><p>
34
</p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>
35
On Windows systems, you can simply download the release ZIP file, expand it
36
using Windows Explorer, and copy the needed script file(s) out of the
37
contained <code class="filename">phplot-*</code> folder into place.
38
  </p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="install.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="install.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="install-next.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">Chapter 1. PHPlot Installation </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> 1.3. Next Step</td></tr></table></div></body></html>