downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | conferences | my php.net

search for in the

VarnishAdmin::disconnect> <VarnishAdmin::connect
[edit] Last updated: Fri, 24 May 2013

view this page in

VarnishAdmin::__construct

(PECL varnish >= 0.3)

VarnishAdmin::__constructVarnishAdmin constructor

Description

public VarnishAdmin::__construct ([ array $args ] )

Parameters

args

Configuration arguments. The possible keys are:

VARNISH_CONFIG_IDENT - local varnish instance ident
VARNISH_CONFIG_HOST - varnish instance ip
VARNISH_CONFIG_PORT - varnish instance port
VARNISH_CONFIG_SECRET - varnish instance secret
VARNISH_CONFIG_TIMEOUT - connection read timeout
VARNISH_CONFIG_COMPAT - varnish major version compatibility

Return Values

Examples

Example #1 VarnishAdmin::__construct() example

<?php
    $args 
= array(
        
VARNISH_CONFIG_HOST => "::1",
        
VARNISH_CONFIG_PORT => 6082,
        
VARNISH_CONFIG_SECRET => "5174826b-8595-4958-aa7a-0609632ad7ca",
        
VARNISH_CONFIG_TIMEOUT => 300,
    );
    
$va = new VarnishAdmin($args);
?>


add a note add a note User Contributed Notes VarnishAdmin::__construct - [0 notes]
There are no user contributed notes for this page.

 
show source | credits | sitemap | contact | advertising | mirror sites