referencing wikipedia

Discussion in 'Programming' started by chintito, Mar 13, 2008.

  1. #1
    I have trying to use a simple program to retrieve a page, something like:

    <?php

    $opts = array(
    'http'=>array(
    'method'=>"GET",

    )
    );

    $context = stream_context_create($opts);


    $fp = fopen('http://forums.digitalpoint.com/forumdisplay.php?f=17', 'r', false,$context);
    fpassthru($fp);
    fclose($fp);

    ?>

    which works well.But when I refer any wiki page.it generates an error.
    can u plz tell me where is the problem?

    TIA
     
    chintito, Mar 13, 2008 IP
  2. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #2
    What error?
     
    nico_swd, Mar 13, 2008 IP
  3. chintito

    chintito Peon

    Messages:
    4
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    it shows some garbage values.
     
    chintito, Mar 13, 2008 IP