i have wrote a little php code to output the name of movies with the following method:
first off in my config.php i have:
what this grabs is:
this is my main way of getting information from imdb.
now on my movies page i have this:
which obviously echos the poster of imdb, now how can i make this download to my server into an image folder then output it back.
i then want a way of grabbing screenshots from iptorrents but not knowing how to grab screenshots to a folder then output them is a bit of a nightmare.
currently, to grab data from ipt i use:
first off in my config.php i have:
PHP:
<?php require("imdb.php") ?>
PHP:
<?php
$q=$_GET['name'];
$url="http://www.imdbapi.org?q=".$q."&type=xml&plot=full";
$xml= simplexml_load_file($url);
$blocks = $xml->xpath('//item'); //gets all <block/> tags
$b=$blocks[0];
?>
this is my main way of getting information from imdb.
now on my movies page i have this:
PHP:
<?php echo $b->poster ?>
i then want a way of grabbing screenshots from iptorrents but not knowing how to grab screenshots to a folder then output them is a bit of a nightmare.
currently, to grab data from ipt i use:
PHP:
if($type=="movies"){
$matches = array();
preg_match("/(.*?)(dvdrip|xvid| cd[0-9]|dvdscr|brrip|divx|[\{\(\[]?[0-9]{4}).*/", $block->title, $matches);
$name=str_replace("(REQ)","", $matches[1]);
$name=str_replace("[REQ]","", $matches[1]);
$name=str_replace(" 3D","", $matches[1]);
$name=str_replace("CAM","", $matches[1]);
$name=str_replace("[Director's Cut]","", $matches[1]);
//echo "<font color=blue>".$name."</font>";
if(trim($name)=="")
$name=$block->title;
$name1=str_replace(" ","%20", $matches[1]);
}
else
{
$name=$block->title;
$name1=urlencode($name);
}