SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Enthusiast
    Join Date
    Mar 2006
    Posts
    75
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Post Help needed to finish the rest

    Hi

    The following script will print the entire contents of another webpage in your own page:

    <?php

    $url = "http://www.code-sucks.com/";
    $open = fopen($url,"r");
    $contents = "";
    do {
    $data = fread($open, 8192);
    if (strlen($data) == 0)
    {
    break;
    }
    $contents .= $data;
    }
    while(true);
    fclose($open);
    echo strip_tags($contents);

    ?>

    Ok.
    I need limited content of dhl's site. When I enter track number(like 3086018456) in dhl site and submit then in next page show the Detailed Report against that number in the niddle of the page.

    Can anyone help me (better if provide me the code )how can I take only that
    report in my site. Many thanks.

  2. #2
    Programming Team silver trophybronze trophy
    Mittineague's Avatar
    Join Date
    Jul 2005
    Location
    West Springfield, Massachusetts
    Posts
    17,290
    Mentioned
    198 Post(s)
    Tagged
    3 Thread(s)

    content

    The easiest thing to do would be to contact the site. Ask them if they syndicate the info you're interested in. If they are displaying the info on their page it must be coming from somewhere right? Why not just ask them how you can get the "raw" info too.

  3. #3
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    why not use dhl's API?

    they can provide this information to you via xml. i know i gave you the link not too long ago.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •