Subversion-Projekte lars-tiefland.php_share

Revision

Details | Letzte Änderung | Log anzeigen | RSS feed

Revision Autor Zeilennr. Zeile
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="42HowtogenerateimageswithPHP.html">
8
<LINK REL="Next" HREF="43UsingPHPdirectly.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="42HowtogenerateimageswithPHP.html">Previous</A>
26
<A HREF="43UsingPHPdirectly.html">Next</A>
27
<HR NOSHADE>
28
<H3><A NAME="4_2_1">4.2.1 Using the JpGraph library to send back images</A>
29
</H3>
30
<P> To get access to the JpGraph library you will need to include at
31
 least two files, the base library and one or more of the plot
32
 extensions. So for example to create a basic line plot the top of your
33
 PHP file must have the lines:<DIV class="phpscript"><CODE><FONT color="#000000">
34
 <FONT color="#0000BB">&nbsp;
35
<BR></FONT><FONT color="#007700">include&nbsp;(</FONT><FONT color="#DD0000">
36
'jpgraph.php'</FONT><FONT color="#007700">);
37
<BR>include&nbsp;(</FONT><FONT color="#DD0000">'jpgraph_line.php'</FONT><FONT color="#007700">
38
);
39
<BR>...
40
<BR>&nbsp;</FONT><FONT color="#FF8000">//&nbsp;Code&nbsp;that&nbsp;uses&nbsp;the&nbsp;jpgraph&nbsp;library
41
<BR></FONT><FONT color="#007700">...</FONT><FONT color="#0000BB"></FONT></FONT>
42
</CODE></DIV></P>
43
<P></P>
44
<P><DIV class="note"><B>Note:</B> You might also use the PHP directive<I>
45
 require</I>. The difference is subtle in that include will only include
46
 the code if the include statement is actually executed. While require()
47
 will always be replaced by the file specified. See PHP documentation
48
 for further explanation. For most practical purposes they are
49
 identical.</DIV></P>
50
<HR NOSHADE>
51
<A HREF="toc.html">Contents</A>
52
<A HREF="42HowtogenerateimageswithPHP.html">Previous</A>
53
<A HREF="43UsingPHPdirectly.html">Next</A>
54
</BODY>
55
</HTML>