PHP Include?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • GFED
    Confirmed User
    • May 2002
    • 8121

    #1

    PHP Include?

    I want to include a page on a bunch of sites so I don't have to edit 100 sites to change the one page. SSI only works on the sites domain... I don't want to use I Frame...

    I know there is a way to fetch pages with PHP with only a few lines of code... can someone please pass the code...


    Thanks!
    https://www.flow.page/savethechildren
  • crescentx
    Confirmed User
    • Jun 2003
    • 317

    #2
    PHP Code:
    <? include "/file/that/you/want/to/include"; ?>
    or
    PHP Code:
    <? include "http://www.thesite.com/file"; ?>
    should do it. The first one is the
    absolute path
    to your file, so if the file is index.html in the directory /home/web/site.com/webdocs/index.html you would need all of that in there. Some configurations make it so you have to do
    PHP Code:
    <?php
    not just
    PHP Code:
    <?
    -doug
    XYCash International Gay Affiliate Program

    Comment

    • GFED
      Confirmed User
      • May 2002
      • 8121

      #3
      Thanks!
      https://www.flow.page/savethechildren

      Comment

      Working...