Location: PHPKode > scripts > HTML Rendele > html-rendele/example.php
<?php
require_once('class-html_rendele.php');

$bot= new html_rendele();
$bot->url='www.cnylmz.net';
$bot->referer='www.cnylmz.net';
$bot->read();

$bot->tag='div';
$bot->tag_select('class','post');
/*
tag_select('*','*'); Select defined tag with any property
tag_select('class','?'); Select tags which have a class property. Value of class is not important
tag_select('?','deneme');  at least 1 property's value must be 'deneme'
tag_select('class','deneme'); Select defined tag whichs class's value equals 'deneme'
tag_select('target','_blank||_top'); Select defineg tags which value of target equals '_blank' or '_top'
*/
$bot->execute();

$a=$bot->result;

for($i=0;$i<count($a);$i++) {
$bot->reset();
$bot->source($a[$i]['icerik']);
$bot->tag='h2';
$bot->tag_select('class','title0||title1');
$bot->execute();
$title=$bot->result[0]['icerik'];
$bot->tag='div';
$bot->tag_select('class','entry');
$bot->execute();
$content=$bot->result[0]['icerik'];
echo '<fieldset><legend>'.$title.'</legend>'.$content.'</fieldset>';
}

?>
Return current item: HTML Rendele