PHP.mk документација

rrd_graph

Почист и полокален преглед на PHP референцата, со задржана структура од PHP.net и подобра читливост за примери, секции и белешки.

function.rrd-graph.php PHP.net прокси Преводот се освежува
Оригинал на PHP.net
Патека function.rrd-graph.php Локална патека за оваа страница.
Извор php.net/manual/en Оригиналниот HTML се реупотребува и локално се стилизира.
Режим Прокси + превод во позадина Кодовите, табелите и белешките остануваат читливи во истиот тек.
rrd_graph

Референца за `function.rrd-graph.php` со подобрена типографија и навигација.

function.rrd-graph.php

rrd_graph

(PECL rrd >= 0.9.0)

rrd_graphCreates image from a data

= NULL

rrd_graph(string $filename, array $options): array

Creates image for a particular data from RRD file.

Параметри

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.
options
Options for generating image. See man page of rrd graph for all possible options. All options (data definitions, variable definitions, etc.) are allowed.

Вратени вредности

Array with information about generated image is returned, or false при неуспех.

Белешки од корисници 6 белешки

Анонимен
пред 6 години
This documentation page is useless ... 

"See man page of rrd graph for all possible options"

I thought I am looking at the documentation, of not, why not provide a link ?
Dk
12 години пред
You can get the latest RRD Error by simply doing print_r(rrd_error()) immediately after the rrd_graph() call.
Matt C
пред 13 години
Note; apache server requires write access to the folder in which the image is to be created otherwise no image file is produced, and (unhelpfully) no error is generated.
info at ukee dot nl
пред 11 години
When using style features like:  --font TITLE:13:Times
use in your code: --font=TITLE:13:Times

the "=" is missing in the documentation
Анонимен
12 години пред
When I add 

--font AXIS:8:

into $options, 

I receive the next error:

PNG creation error: unknown option '--font AXIS:8:'

According to docs from rrdtool site the right syntax is:

[-n|--font FONTTAG:size:[font]]

This lets you customize which font to use for the various text elements on the RRD graphs. DEFAULT sets the default value for all elements, TITLE for the title, AXIS for the axis labels, UNIT for the vertical unit label, LEGEND for the graph legend, WATERMARK for the watermark on the edge of the graph.

Use Times for the title: --font TITLE:13:Times

Note that you need to quote the argument to --font if the font-name contains whitespace: --font "TITLE:13:Some Font"

If you do not give a font string you can modify just the size of the default font: --font TITLE:13:.
geekcom
пред 6 години
На оваа страница

Автоматски outline од активната документација.

Насловите ќе се појават тука по вчитување.

Попрегледно читање

Примерите, changelog табелите и user notes се визуелно издвоени за да не се губат во долгата содржина.

Брз совет Користи го outline-от Скокни директно на главните секции од активната страница.
Извор Оригиналниот линк останува достапен Кога ти треба целосен upstream context, отвори го PHP.net во нов tab.