this is just a little something I Threw together this is not Source related.
The code is simple it well create an array of latest DVD releases
PHP Code:
$newdvds = @file_get_contents('http://www.moviefone.com/dvd');
preg_match_all('#<div class="hub-item">(.*)</div><!-- .hub-item -->#siU', $newdvds, $output, PREG_SET_ORDER);
$dvds = array();
foreach($output as $val){
if(!is_array($val[0])){
preg_match_all('#<a class="movieTitle" href="(.*)">#siU', $val[0], $lk, PREG_SET_ORDER);
$link = $lk[0][1];
preg_match_all('#<a class="movieTitle" href="' . $link . '">(.*)</a>#siU', $val[0], $ti, PREG_SET_ORDER);
$title = $ti[0][1];
preg_match_all('#<img class="thePoster" onClick="window.location=\'' . $link . '\'" src="(.*)"#siU', $val[0], $im, PREG_SET_ORDER);
$image = $im[0][1];
preg_match_all('#<div class="openingSoon">(.*)</div>#siU', $val[0], $rd, PREG_SET_ORDER);
$redate = $rd[0][1];
$dvds[] = array(
'TITLE' => $title,
'LINK' => $link,
'POSTER' => $image,
'RELEASED' => $redate
);
}
}
Now the rest is up to you
to use it you well use foreach function like so
PHP Code:
foreach($dvds as $val){
echo $val['TITLE'].'<br>';
echo $val['LINK'].'<br>';
echo $val['POSTER'].'<br>';
echo $val['RELEASED'].'<br>';
echo '<br><br>';
}
this well generate a list like so
Code:
Blitz (2010)
http://www.moviefone.com/movie/blitz/10046998/main
http://o.aolcdn.com/dims-photohub/dims/MOVS/5/125/185/75/http://www.aolcdn.com/ch_movies/no_image_125x186
August 16, 2011
The Best and the Brightest
http://www.moviefone.com/movie/the-best-and-the-brightest/10049301/main
http://o.aolcdn.com/dims-photohub/dims/MOVS/5/125/185/75/http://o.aolcdn.com/os/movies/movie_posters/10049301_p_m
August 16, 2011
The Conspirator
http://www.moviefone.com/movie/the-conspirator/10018132/main
http://o.aolcdn.com/dims-photohub/dims/MOVS/5/125/185/75/http://o.aolcdn.com/os/movies/movie_posters/10018132_p_m
August 16, 2011
__________________
Do not ask me to help you work on your site that is not phpMyBitTorrent
Do not ask me to make a mod for any other source
Do not Ask me to setup your site.
I will no longer help you setup your site, there is a setup script if you have trouble with it post in the forum here or in
BT.Manager™ forum
My Current Demo is here
http://demo.btmanager.org/