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>SetIsInline</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="reference.html" title="PHPlot Function Reference" /><link rel="prev" href="SetImageBorderWidth.html" title="SetImageBorderWidth" /><link rel="next" href="SetLabelScalePosition.html" title="SetLabelScalePosition" /></head><body><div class="navheader"><table width="100%" summary="Navigation header"><tr><th colspan="3" align="center">SetIsInline</th></tr><tr><td width="20%" align="left"><a accesskey="p" href="SetImageBorderWidth.html">Prev</a> </td><th width="60%" align="center">PHPlot Function Reference</th><td width="20%" align="right"> <a accesskey="n" href="SetLabelScalePosition.html">Next</a></td></tr></table><hr /></div><div class="refentry"><a id="SetIsInline"></a><div class="titlepage"></div><div class="refnamediv"><h2><span class="refentrytitle">SetIsInline</span></h2><p>SetIsInline — Set the output image to be inline - without HTTP headers</p></div><div class="refsynopsisdiv"><h2>Synopsis</h2><pre class="synopsis">$plot->SetIsInline(<em class="parameter"><code>$is_inline</code></em>)</pre></div><div class="refsect1"><a id="idp1378200532"></a><h2>Description</h2><p>
|
|
|
3 |
<code class="function">SetIsInline</code> determines if HTTP headers are sent along
|
|
|
4 |
with the output image or not. By default, HTTP headers are sent,
|
|
|
5 |
identifying the image type for browsers. If PHPlot output is not being
|
|
|
6 |
directed to a browser, or in other special-purpose applications, you can
|
|
|
7 |
turn off the HTTP content type header using this function.
|
|
|
8 |
</p></div><div class="refsect1"><a id="idp1378201788"></a><h2>Parameters</h2><div class="variablelist"><dl class="variablelist"><dt><span class="term"><em class="replaceable"><code>$is_inline</code></em></span></dt><dd><p>
|
|
|
9 |
True to suppress HTTP content type headers, False to include the headers.
|
|
|
10 |
</p></dd></dl></div></div><div class="refsect1"><a id="idp1378203324"></a><h2>Notes</h2><p>
|
|
|
11 |
The default is to include the headers. However, the PHP CLI (command line
|
|
|
12 |
interface) never outputs headers, so using this function is not necessary
|
|
|
13 |
if you are using the PHP CLI to create image files by redirecting standard
|
|
|
14 |
output to a file.
|
|
|
15 |
</p><p>
|
|
|
16 |
You must call SetIsInline(True) if you are sending PHPlot output to a file
|
|
|
17 |
with <a class="xref" href="SetOutputFile.html" title="SetOutputFile"><span class="refentrytitle">SetOutputFile</span></a>, or by supplying a filename argument to
|
|
|
18 |
the <a class="xref" href="PHPlot.html" title="PHPlot"><span class="refentrytitle">PHPlot</span></a> constructor.
|
|
|
19 |
</p></div></div><div class="navfooter"><hr /><table width="100%" summary="Navigation footer"><tr><td width="40%" align="left"><a accesskey="p" href="SetImageBorderWidth.html">Prev</a> </td><td width="20%" align="center"><a accesskey="u" href="reference.html">Up</a></td><td width="40%" align="right"> <a accesskey="n" href="SetLabelScalePosition.html">Next</a></td></tr><tr><td width="40%" align="left" valign="top">SetImageBorderWidth </td><td width="20%" align="center"><a accesskey="h" href="index.html">Home</a></td><td width="40%" align="right" valign="top"> SetLabelScalePosition</td></tr></table></div></body></html>
|