readfile for url produces wrong results.

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • AA

    readfile for url produces wrong results.

    Hi all. I have at website1.

    <?php
    $filename="http ://orange.com/links.php?linke r=3244324";
    echo readlfile($file name);
    ?>

    At website2, I ouput some generated HTML using the linker key from
    website1.

    But what happens when I retrieve the HTML is that website2 outputs the HTML
    relating to the webhosting company's main page instead of my HTML generated
    code. I am using apache on website1 and website2. Does anybody know why
    this is happening. Thanks in advance.
  • Tyno Gendo

    #2
    Re: readfile for url produces wrong results.

    AA wrote:
    Hi all. I have at website1.
    >
    <?php
    $filename="http ://orange.com/links.php?linke r=3244324";
    echo readlfile($file name);
    ?>
    >
    At website2, I ouput some generated HTML using the linker key from
    website1.
    >
    But what happens when I retrieve the HTML is that website2 outputs the HTML
    relating to the webhosting company's main page instead of my HTML generated
    code. I am using apache on website1 and website2. Does anybody know why
    this is happening. Thanks in advance.
    Your website one script is reading from orange.com, where does website
    two come into it? What's being run at website2?

    Also, if you're calling a URL on website 2, you sure you got the address
    right and your not getting some predefined 404 error page from your
    provider?

    Please submit full code examples so people can see clearly what you're
    running.

    Comment

    Working...