Blame | Last modification | View Log | RSS feed
<?xml version="1.0" encoding="ISO-8859-1" standalone="no"?><!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>Unpack the PHPlot distribution into a convenient directory. PHPlot releasesare available both as ZIP files, and as gzip-compressed TAR files.Use whichever format is more convenient for you. In the example below, theTAR format is unpacked.</p><pre class="screen">$ tar -xvzf phplot-6.*.tar.gz$ cd phplot-6.*</pre><p>(Use the appropriate file and directory (folder) name.)Check the distribution for README and/or INSTALL files which may containnewer instructions.</p><p>Installation of PHPlot simply involves copying the script files somewhereyour PHP application scripts will be able to find them. The scripts are:<code class="filename">phplot.php</code>, the main script file,and <code class="filename">rgb.inc.php</code>, an optional script file containing alarge color map.Make sure the protections on these files allow the web server to read them.For example:</p><pre class="screen">$ chmod 644 *.php</pre><p></p><p>Then, simply copy the files into a directory where PHP scriptswill be able to include them.The ideal place is a directory outside your web serverdocument area, and on your PHP include path (that you noted above inthe PHP Info report). You can add to the include pathin the PHP configuration file; consult the PHP manual for details.For example, if <code class="filename">/usr/local/share/php</code> is onyour PHP include path, you can install PHPlot with:</p><pre class="screen">$ cp phplot.php rgb.inc.php /usr/local/share/php</pre><p></p><div class="note" style="margin-left: 0.5in; margin-right: 0.5in;"><h3 class="title">Note</h3><p>On Windows systems, you can simply download the release ZIP file, expand itusing Windows Explorer, and copy the needed script file(s) out of thecontained <code class="filename">phplot-*</code> folder into place.</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>