예제 #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";
예제 #2
0
파일: keep_input.php 프로젝트: clox/hicurl
<?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";
예제 #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";