Can someone explain something to me. I have created a PHP script that dynamically builds an XML string, sends it to another server which parses the XML and sends back a formatted HTML reply (in this case it is shipping charges based on weight and destination). Here is my prob. I would like the HTML reply to be included in my page. I have successfully posted the info, and I am getting the correct results, however the results are being shown at the offsite server URL. Anyone know what function I would use? Any input is greatly appreciated.

Thanks.

    if you used fsockopen try:

    fputs($sk, $str, strlen($str));
    while(!feof($sk)){
    $strResp.=fgets($sk,80)."<br>";
    }
    fclose($sk);
    echo "<br>$strResp"; br>$strResp";

    where $str is your XML and $strResp is what the server responded. You'll be getting the headers as well though, so you'll have to reformat $strResp

      Nacho,

      You really helped me get out of a jam. It worked! Thanks. I am fairly new to PHP and the snippet you posted was realy helpful. Now I am just off to figure out how to suppress the headers. Cheers.

      Rex

        Write a Reply...