php header parsing problem

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • risestar
    Member
    • Apr 2000
    • 85

    php header parsing problem

    I am trying to parse the following php code in the header template and have tried it every way from sunday, but cannot get it to properly insert into the header.

    I have tried it with parse php on and also with it off and still its no go

    Any ideas?

    -------

    <?php
    $banner = fopen ("http://www.dsschat.com/cgi-bin/advertpro/banners.fpl?region=1&mode=SSI", "r");

    if (!$banner) {
    echo "[an error occurred during processing]";
    exit;
    }

    while (!feof ($banner)) {
    $line = fgets ($banner, 1024);
    echo "$line";
    }

    fclose($banner);
    ?>
  • Nicholas Brown
    Senior Member
    • Oct 2000
    • 1084
    • 1.1.x

    #2
    Just use this code:

    [code]
    $banner = fopen ("http://www.dsschat.com/cgi-bin/advertpro/banners.fpl?region=1&mode=SSI", "r");

    if (!$banner) {
    echo "[an error occurred during processing]";
    exit;
    }

    while (!feof ($banner)) {
    $line = fgets ($banner, 1024);
    echo "$line";
    }

    fclose($banner);
    [/code]

    Have you enabled PHP-Parsed headers in the Options?

    Comment

    • risestar
      Member
      • Apr 2000
      • 85

      #3
      Thanks, I will give it a shot

      Comment

      widgetinstance 262 (Related Topics) skipped due to lack of content & hide_module_if_empty option.
      Working...