Ejemplo n.º 1
0
<?php

require_once '../src/hicurl.php';
unlink('data/history.tmp');
$hicurl = new Hicurl(['history' => 'data/history.tmp']);
$hicurl->loadSingle('www.google.com', null, null, ['name' => 'Google']);
$hicurl->loadSingle('www.facebook.com', null, null, ['name' => 'Facebook']);
$hicurl->compileHistory('data/history.gz');
include "assets/test.htm";
Ejemplo n.º 2
0
<?php

require_once '../src/hicurl.php';
$hicurl = new Hicurl(['history' => 'data/history.tmp']);
$hicurl->loadSingle('www.google.com');
$hicurl->compileHistory('data/history.gz', null, true);
include "assets/test.htm";
Ejemplo n.º 3
0
<?php

require_once '../src/hicurl.php';
unlink('data/history.txt');
$hicurl = new Hicurl(['history' => 'data/history.txt']);
$result = $hicurl->loadSingle('https://www.random.org/integers/?num=1&min=1&max=100&col=1&base=10&format=html&rnd=new', null, ['xpath' => ['expression' => '//*[@id="invisible"]/pre/text()', 'compare' => 'x>75'], 'maxFruitlessRetries' => 20, 'fruitlessPassDelay' => 0]);
$hicurl->compileHistory();
include "assets/test.htm";