Jump to content

if

New Members
  • Posts

    8
  • Joined

  • Last visited

    Never

Profile Information

  • Gender
    Not Telling

if's Achievements

Newbie

Newbie (1/5)

0

Reputation

  1. please help i been working on this for 2 days please
  2. http://rss.imageshack.us/user/NilsPetter13/images/rss ive tried curl and file_get_contents but still no luck i can browse that page using browser but when i read the file using php this is no longer giving me any ouput <?php error_reporting(E_ALL); ini_set('reporting_errors',1); // spoofing FireFox 2.0 $useragent="Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.1) Gecko/20061204 Firefox/2.0.0.1"; $str = array( "Accept-Language: en-us,en;q=0.5", "Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7", "Keep-Alive: 300", "Connection: keep-alive" ); $ch = curl_init(); // set user agent curl_setopt($ch, CURLOPT_USERAGENT, $useragent); curl_setopt($ch, CURLOPT_HTTPHEADER, $str); curl_setopt($ch, CURLOPT_REFERER, ""); curl_setopt($ch, CURLOPT_URL, "http://rss.imageshack.us/user/NilsPetter13/images/rss"); // grab URL and pass it to the browser curl_exec($ch); // close cURL resource, and free up system resources curl_close($ch); ?> this is also not working $url = 'http://rss.imageshack.us/user/NilsPetter13/images/rss'; echo file_get_contents($url); print_r(file($url)); please help
  3. that should load an xml file but i get those weird characters ???
  4. i tried this $string = file_get_contents('http://torrents.thepiratebay.org/filelist/4137201'); echo $string; and this is the result ‹������µÔMkƒ0ð{?EðÞú0ñ‘"£O–o:JΨ…lxö–²“gO×\I¢±I3gI3gI3WI3ó‡!•£7ÍÍÍÍŸwHÁ‚F7g˜s¦TJÙ³•l ƒ"~GÏmò ²¿Sû �� any ideas ?
  5. heres the part of string I' working with I want to get the text inside all href <A HREF="http://www.teng.com" onclick="startRequest(6467)" target="_blank" ><img src=img/pilner.gif class=img alt="Genv�g till nedladdning"></A><A HREF="http://teng.com" target=_blank ><img src=img/trailer.png class=img alt="Genv�g till Trailervisning"></A><a href="http://teng.net "target=_blank ><img src=img/trailer.png class=img alt="Genv�g till Trailervisning"></a></TD> so i should have http://www.teng.com http://teng.net Thanks in advance!
×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.