Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

rrd_graph(3) [php man page]

RRD_GRAPH(3)								 1							      RRD_GRAPH(3)

rrd_graph - Creates image from a data.

SYNOPSIS
array rrd_graph (string $filename, array $options) DESCRIPTION
Creates image for a particular data from RRD file. PARAMETERS
o $filename - The filename to output the graph to. This will generally end in either .png, .svg or .eps, depending on the format you want to output. o $options - Options for generating image. See man page of rrd graph for all possible options. All options (data definitions, variable defin- tions, etc.) are allowed. RETURN VALUES
Array with information about generated image is returned, FALSE when error occurs. PHP Documentation Group RRD_GRAPH(3)

Check Out this Related Man Page

IMAGECREATEFROMSTRING(3)						 1						  IMAGECREATEFROMSTRING(3)

imagecreatefromstring - Create a new image from the image stream in the string

SYNOPSIS
resource imagecreatefromstring (string $image) DESCRIPTION
imagecreatefromstring(3) returns an image identifier representing the image obtained from the given $image. These types will be automati- cally detected if your build of PHP supports them: JPEG, PNG, GIF, WBMP, and GD2. PARAMETERS
o $image - A string containing the image data. RETURN VALUES
An image resource will be returned on success. FALSE is returned if the image type is unsupported, the data is not in a recognised for- mat, or the image is corrupt and cannot be loaded. EXAMPLES
Example #1 imagecreatefromstring(3) example <?php $data = 'iVBORw0KGgoAAAANSUhEUgAAABwAAAASCAMAAAB/2U7WAAAABl' . 'BMVEUAAAD///+l2Z/dAAAASUlEQVR4XqWQUQoAIAxC2/0vXZDr' . 'EX4IJTRkb7lobNUStXsB0jIXIAMSsQnWlsV+wULF4Avk9fLq2r' . '8a5HSE35Q3eO2XP1A1wQkZSgETvDtKdQAAAABJRU5ErkJggg=='; $data = base64_decode($data); $im = imagecreatefromstring($data); if ($im !== false) { header('Content-Type: image/png'); imagepng($im); imagedestroy($im); } else { echo 'An error occurred.'; } ?> The above example will output something similar to:[NOT DISPLAYABLE MEDIA]Output of example : imagecreatefromstring() SEE ALSO
imagecreatefromjpeg(3), imagecreatefrompng(3), imagecreatefromgif(3), imagecreatetruecolor(3). PHP Documentation Group IMAGECREATEFROMSTRING(3)
Man Page