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.3. Next Step</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-install.html" title="1.2. Installing" /><link rel="next" href="starting.html" title="Chapter 2. Getting Started with PHPlot" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">1.3. Next Step</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="install-install.html">Prev</a> </td><th width="60%" align="center">Chapter 1. PHPlot Installation</th><td width="20%" align="right"> <a accesskey="n" href="starting.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-next"></a>1.3. Next Step</h2></div></div></div><p>You can test PHPlot with any of the examples in <a class="xref" href="examples.html" title="Chapter 5. PHPlot Examples">Chapter 5, <em>PHPlot Examples</em></a>,or by entering this minimal script into a file called (for example)<code class="filename">plottest.php</code>.</p><pre class="programlisting"><?phprequire 'phplot.php';$data = array(array('', 10), array('', 1));$plot = new PHPlot();$plot->SetDataValues($data);$plot->SetTitle('First Test Plot');$plot->DrawGraph();</pre><p>Access this script through your browser, and you should see a very simpleplot. Note: Since PHPlot returns image data, not text, you will generallynot see error messages in the output. If a script using PHPlot has asyntax error, or calls an undefined function, you will get a blank pagereturned, and you will probably have to check the web server error logfor the reason.You might find that debugging your PHPlot applications is easier usingthe PHP CLI (command line interface),as described at the start of <a class="xref" href="examples.html" title="Chapter 5. PHPlot Examples">Chapter 5, <em>PHPlot Examples</em></a>.</p><p>If you are installing PHPlot for use by some web application (rather thanto develop your own applications), proceed with that application's setupinstructions. If you want to develop your own applications using PHPlot, youcan start by looking at some of the examples in <a class="xref" href="examples.html" title="Chapter 5. PHPlot Examples">Chapter 5, <em>PHPlot Examples</em></a>,or go right to the introductory material in <a class="xref" href="starting.html" title="Chapter 2. Getting Started with PHPlot">Chapter 2, <em>Getting Started with PHPlot</em></a>.Experienced programmers may want to skip right to <a class="xref" href="concepts.html" title="Chapter 3. PHPlot Concepts">Chapter 3, <em>PHPlot Concepts</em></a>to learn about PHPlot concepts and features in depth.</p></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="install-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="starting.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">1.2. Installing </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> Chapter 2. Getting Started with PHPlot</td></tr></table></div></body></html>