Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function imdb2pic($imdb, $id, $poster = 1)
- {
- if(strpos($imdb, "imdb.com"))
- {
- $imdb = trim($imdb);
- $nisse = True;
- $tmpfile = "weee.txt";
- shell_exec("wget -O $tmpfile $imdb");
- $fp = fopen($tmpfile, "rt");
- while(!feof($fp))
- {
- $buffer = fgets($fp);
- $buf .= $buffer;
- }
- $hej = $buf;
- @unlink($tmpfile);
- $pos1 = strpos($hej, '<a name="poster"');
- $hej = substr($hej,$pos1);
- $pos1 = strpos($hej, 'src="');
- $hej = substr($hej, $pos1+5);
- $pos1 = strpos($hej, '"');
- $hej = substr($hej,0, $pos1);
Add Comment
Please, Sign In to add comment