2 Replies Latest reply on Aug 30, 2006 5:42 PM by Newsgroup_User

    How do I include a web page from a different website? (PHP)

    Level 7
      I know how to include local files, but I want to include an entire page
      from a different website.

      I'm working on MySite/About/index.php. There's NOTHING on the page
      except this:

      <?php include (" http://www.geobop.org/About/index.php"); ?>

      I tried it with and without the parentheses, but I get the following
      error message:

      Parse error: syntax error, unexpected T_STRING in (URL) on line 1.

      However, I get the same message no matter how far down I push the
      include, suggesting that the error actually relates to the page I'm
      trying to include. This is the first line on that page:

      <?php echo "<?xml version=\"1.0\" encoding=\"iso-8859-1\"?".">"; ?>

      Thanks for any tips.

      www.geobop.org - Family Websites
      www.invisible-republic.org - Adult political websites (Mature adults only)