| 1 |
lars |
1 |
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
|
|
|
2 |
<HTML>
|
|
|
3 |
<HEAD>
|
|
|
4 |
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; CHARSET=iso-iso-8859-1">
|
|
|
5 |
<LINK REL="Start" HREF="index.html">
|
|
|
6 |
<LINK REL="Contents" HREF="toc.html">
|
|
|
7 |
<LINK REL="Prev" HREF="34Imageformatsandexternalimagelibraries.html">
|
|
|
8 |
<LINK REL="Next" HREF="36Troubleshootingyourinstallation.html">
|
|
|
9 |
<STYLE TYPE="text/css"><!--
|
|
|
10 |
BODY { font-family: serif }
|
|
|
11 |
H1 { font-family: sans-serif }
|
|
|
12 |
H2 { font-family: sans-serif }
|
|
|
13 |
H3 { font-family: sans-serif }
|
|
|
14 |
H4 { font-family: sans-serif }
|
|
|
15 |
H5 { font-family: sans-serif }
|
|
|
16 |
H6 { font-family: sans-serif }
|
|
|
17 |
SUB { font-size: smaller }
|
|
|
18 |
SUP { font-size: smaller }
|
|
|
19 |
PRE { font-family: monospace }
|
|
|
20 |
A { text-decoration: none }
|
|
|
21 |
--></STYLE>
|
|
|
22 |
</HEAD>
|
|
|
23 |
<BODY>
|
|
|
24 |
<A HREF="toc.html">Contents</A>
|
|
|
25 |
<A HREF="34Imageformatsandexternalimagelibraries.html">Previous</A>
|
|
|
26 |
<A HREF="36Troubleshootingyourinstallation.html">Next</A>
|
|
|
27 |
<HR NOSHADE>
|
|
|
28 |
<H2><A NAME="3_5">3.5 Detailed steps to install JpGraph</A></H2>
|
|
|
29 |
<P></P>
|
|
|
30 |
<OL>
|
|
|
31 |
<LI>If You are insatlling the 1.x branch then make sure the PHP version
|
|
|
32 |
used is at least 4.3.x (preferable 4.3.10 or higher) and that the PHP
|
|
|
33 |
version have compiled support for GD library. It is absolutely critical
|
|
|
34 |
that GD is fully working. Please see the earlier sections on how to
|
|
|
35 |
make sure. JpGraph supports both GD 1.x and GD 2.x However it is
|
|
|
36 |
strongly recommended to use GD 2.x since that will improve performance
|
|
|
37 |
and support true color images as well as alphablending.
|
|
|
38 |
<P> If You are insatlling the 2.x branch then make sure the PHP version
|
|
|
39 |
used is at least 5.0.1 (preferable 5.0.5 or higher) and that the PHP
|
|
|
40 |
version have compiled support for GD 2.x library. Please note that the
|
|
|
41 |
2.x branch will<B> not</B> work with PHP 4.x</P>
|
|
|
42 |
</LI>
|
|
|
43 |
<LI>Unzip and copy the files to a directory of your choice.</LI>
|
|
|
44 |
<LI>Set up the directory paths in<I> jpg-config.inc.php</I> where the
|
|
|
45 |
cache directory should be and where your TTF directory is. Note that
|
|
|
46 |
Apache/PHP must have write permission in your cache directory.</LI>
|
|
|
47 |
<LI> Check that all rest of the DEFINE in the top of JpGraph.php is
|
|
|
48 |
setup to your preference. The default should be fine for most users.
|
|
|
49 |
(See also Note 5. below) Specifically check that the settings of
|
|
|
50 |
USE_GD2_LIBRARY reflects your installation, (should be true if you have
|
|
|
51 |
GD2 installed, false otherwise).</LI>
|
|
|
52 |
<LI>Make sure PHP have write privileges to your cache directory if you
|
|
|
53 |
plan on using the cache feature.</LI>
|
|
|
54 |
<LI> Some windows installations seems to have a problem with a PHP
|
|
|
55 |
script ending in a newline (This newline seems to be sent to the
|
|
|
56 |
browser and will cause a Header already sent error). If you have this
|
|
|
57 |
problem try remove all trailing newlines in the jpgraph* files</LI>
|
|
|
58 |
<LI> Read (really!) <A href="http://www.aditus.nu/jpgraph/jpgraphfaq.html">
|
|
|
59 |
the JpGraph FAQ</A>.</LI>
|
|
|
60 |
</OL>
|
|
|
61 |
<P></P>
|
|
|
62 |
<HR NOSHADE>
|
|
|
63 |
<A HREF="toc.html">Contents</A>
|
|
|
64 |
<A HREF="34Imageformatsandexternalimagelibraries.html">Previous</A>
|
|
|
65 |
<A HREF="36Troubleshootingyourinstallation.html">Next</A>
|
|
|
66 |
</BODY>
|
|
|
67 |
</HTML>
|