- file_get_contents: documentation ( source)
- var_dump: documentation ( source)
- stream_context_create: documentation ( source)
- preg_match_all: documentation ( source)
<?
$i=1;
$linkw='http://www.filmweb.pl/search/film?q=&type=&startYear=&endYear=2015&countryIds=&genreIds=&startRate=&endRate=&startCount=&endCount=&sort=PREMIERE_POLAND&sortAscending=true&c=portal&page='.$i;
$context = stream_context_create($opts);
$nazwa = file_get_contents($linkw,false,$context);
$film_time = '/(?:(?P<hours>\d+) godz\.)?\s*(?:(?P<minutes>\d+) min\.)?/';
preg_match_all($film_time, $nazwa, $film_time);
var_dump($film_time);
//exit;
?>