Welcome to Welcome to DNF.com™ - Domain Sales, Domain Forum, Domain Appraisals, Domain Registrars

If you are new to domains and looking to buy, sell and learn about domains then you have come to the right place. DNForum is the largest domain name community on the internet and continues to grow every day. There are over 105,000 domainers on DNForum doing everything from buying domains, selling domains, learning about domains and discussing domains. Take a minute and Register.

Register Today on DNForum IT'S FREE!

Results 1 to 15 of 15
  1. #1
    DNF Addict
    Rocket2Uranus's Avatar
    Join Date
    Nov 2002
    Location
    Grand Rapids, MI
    Posts
    2,176
    DNF$
    3,441
    Bank
    0
    Total DNF$
    3,441
    Donate  

    included content across domains

    Is this possible, without resorting to frames?

    For instance, I have some content at abc.com that I want to show up on a page at xyz.com. Short of copying and pasting it over every time it changes, is there a relatively easy html solution for me?

    I know how to do this from page to page within a site, but my system doesn't seem to work with absolute urls.

  2. #2
    Platinum Lifetime Member
    Jeanco's Avatar
    Join Date
    Mar 2004
    Posts
    265
    DNF$
    469
    Bank
    0
    Total DNF$
    469
    Donate  

    Re: included content across domains

    You can use PHP for this. Just save the content from xyz in a file. ie: somefile.php

    Then you can use an include statement to include the content. For example, here's something you could use to mimic xyz.com on as many paegs as you wish. This way whenever you change 'somefile.php' on the xyz site, it will change on all sites:

    PHP Code:
    <html>
    <head>
    <title>Whatever</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <?php include ('http://www.xyz.com/somefile.php'?>

    </body>
    </html>

  3. #3
    a.k.a. Nameslave
    Anthony Ng's Avatar
    Join Date
    May 2002
    Location
    Toronto, ON
    Posts
    4,985
    Country

    Canada Follow Anthony Ng On Twitter Add Anthony Ng on Facebook
    DNF$
    4,528
    Bank
    0
    Total DNF$
    4,528
    Donate  

    Re: included content across domains

    PHP Code:
    <?php include ('http://www.xyz.com/somefile.php'?>
    EXACTLY! PHP Includes are much more powerful than SSI (server Side Includes), which require files to be on the same server. And I hate that long and ugly .shtml extension.
    Profoundly influenced by #Bauhaus, @Nameslave unrepentantly embraces #Minimalism in his #multimedia portfolio. His early works include an experimental adaptation of Chekhov’s Cherry Orchard inspired at least partly by Robert Fripp. His totally irrelevant M.Ed. dissertation examines Organizational Culture and Change Management.

  4. #4
    Internet Entrepreneur
    David G's Avatar
    Join Date
    Apr 2002
    Location
    Sonoran Desert
    Posts
    6,002
    Blog Entries
    144
    Country

    United States
    DNF$
    3,462
    Bank
    0
    Total DNF$
    3,462
    Donate  

    Re: included content across domains

    Do both the content site and the site using the same content need to be configured on the server to do PHP, or only one of the sites?

    Sorry that my knowledge of php is poor. Wish I knew more about it. Any ideas on how I could at least learn the basics, written very simply from the viewpoint of a non-geek? Thanks.

    <html>
    <head>
    <title>Whatever</title>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
    </head>

    <body>

    <?php include ('http://www.xyz.com/somefile.php') ?>

    </body>
    </html>

  5. #5
    a.k.a. Nameslave
    Anthony Ng's Avatar
    Join Date
    May 2002
    Location
    Toronto, ON
    Posts
    4,985
    Country

    Canada Follow Anthony Ng On Twitter Add Anthony Ng on Facebook
    DNF$
    4,528
    Bank
    0
    Total DNF$
    4,528
    Donate  

    Re: included content across domains

    Not really. The best thing about PHP includes is that you can include something off-server. (That's why you can use an "absolute" URL.) You can even include a text file.

    As for learning PHP, you may check out php.net; but to be frank, if it is just for Includes, the line I quoted above is all you need (and powerful enough).
    Profoundly influenced by #Bauhaus, @Nameslave unrepentantly embraces #Minimalism in his #multimedia portfolio. His early works include an experimental adaptation of Chekhov’s Cherry Orchard inspired at least partly by Robert Fripp. His totally irrelevant M.Ed. dissertation examines Organizational Culture and Change Management.

  6. #6
    Internet Entrepreneur
    David G's Avatar
    Join Date
    Apr 2002
    Location
    Sonoran Desert
    Posts
    6,002
    Blog Entries
    144
    Country

    United States
    DNF$
    3,462
    Bank
    0
    Total DNF$
    3,462
    Donate  

    Re: included content across domains

    Thanks Nameslave, you are an excellent Mod and you and Jeanco are very helpful.

  7. #7
    DNF Addict
    Rocket2Uranus's Avatar
    Join Date
    Nov 2002
    Location
    Grand Rapids, MI
    Posts
    2,176
    DNF$
    3,441
    Bank
    0
    Total DNF$
    3,441
    Donate  

    Re: included content across domains

    wow thanks everyone! I will take a crack at this when I have a spare moment (those are few and far between!) and I'll let you know how it goes.

  8. #8
    Platinum Lifetime Member
    Jeanco's Avatar
    Join Date
    Mar 2004
    Posts
    265
    DNF$
    469
    Bank
    0
    Total DNF$
    469
    Donate  

    Re: included content across domains

    No problem, glad it helped

  9. #9
    a.k.a. Nameslave
    Anthony Ng's Avatar
    Join Date
    May 2002
    Location
    Toronto, ON
    Posts
    4,985
    Country

    Canada Follow Anthony Ng On Twitter Add Anthony Ng on Facebook
    DNF$
    4,528
    Bank
    0
    Total DNF$
    4,528
    Donate  

    Re: included content across domains

    Hey, don't even mention it.

    By the way, make sure you name your "holder" file .php (e.g. index.php) instead of .htm or .html. And some servers are configured to look for index.html and index.htm first as default, so you may need to rename those files (if any) as well.
    Profoundly influenced by #Bauhaus, @Nameslave unrepentantly embraces #Minimalism in his #multimedia portfolio. His early works include an experimental adaptation of Chekhov’s Cherry Orchard inspired at least partly by Robert Fripp. His totally irrelevant M.Ed. dissertation examines Organizational Culture and Change Management.

  10. #10
    Platinum Lifetime Member
    Steen's Avatar
    Join Date
    Mar 2003
    Location
    White Rock, BC
    Posts
    4,892
    DNF$
    2,042
    Bank
    0
    Total DNF$
    2,042
    Donate  

    Re: included content across domains

    Quote Originally Posted by nameslave
    Not really. The best thing about PHP includes is that you can include something off-server. (That's why you can use an "absolute" URL.) You can even include a text file.


    I thought some hosts/admins don't allow remote PHP Includes like above. Due to insecurities?

    Get an eNom resellers account free and instantly,
    click here - Automated Signup!

  11. #11
    Platinum Lifetime Member
    Jeanco's Avatar
    Join Date
    Mar 2004
    Posts
    265
    DNF$
    469
    Bank
    0
    Total DNF$
    469
    Donate  

    Re: included content across domains

    yeah, you can use an if statement that reads from a file on xyz.com. Something like xyz.com/allowed.txt

    allowed .txt could contain the URLs that are allowed to be accessed through includes. Then whenever you add a new domain you just need to add it to the access list.

  12. #12
    Gold Lifetime Member

    Join Date
    Jan 2003
    Location
    Washington D.C.
    Posts
    73
    DNF$
    529
    Bank
    0
    Total DNF$
    529
    Donate  

    Re: included content across domains

    The most effective use of this, some say decitful, is to store the includes data and extract any specific target bit of the site or text, like articles or headlines. Usually done by knowing the html layout of the source html and matching on a div name or simple html tag set of info, or named table, anything specific. dump the rest of the data and pring the results and essentially you have stolen a website or page infinately updated by others, that fits right into your webpage instead of replacing it.

    This is why most hosts disable this php feature. Some don't!

    Takes a long time for the source site to figure out they are being sapped.

    Legit uses would be exactly what the this poster wants to do, share his own stuff across sites. Hard to convince a host of that legit use.

    Regards,

    L Golding

  13. #13
    Former DNF Admin
    MediaHound's Avatar
    Join Date
    Feb 2004
    Location
    Florida
    Posts
    4,896
    Blog Entries
    1
    DNF$
    15,979
    Bank
    0
    Total DNF$
    15,979
    Donate  

    Re: included content across domains

    Movie, is your sitedomain all php pages so far, or html, htm etc.
    Because if so, you might want to do different things

    AddHandler server-parsed .htm .html - this goes in .htaccess - turnes those types of pages into ssi enabled so you could use this tag <!--#include file="execute.php" --> and in execute.php you have the content

    Lots more we can go from here with it, but this is a start. as you can see everyone here knows a lot about it, different ways of doing it, and would help

    Maybe someone would give me a few ideas -
    http://www.dnforum.com/f77/im-taking-poll-read-one-thread-57001.html#post378100

  14. #14
    Platinum Lifetime Member

    Join Date
    Mar 2004
    Posts
    201
    DNF$
    564
    Bank
    0
    Total DNF$
    564
    Donate  

    Re: included content across domains

    Just as a matter of interest smartcgis.com have got a free script called the executer which acheives much the same thing.

    you just drop the file in the cgi-bin, point it to the URL you would like to grab, and on the page where you want it displayed, pont to the executer.cgi file
    It is just an alterative,

  15. #15
    Platinum Lifetime Member
    HeavyLifting's Avatar
    Join Date
    Jan 2003
    Location
    Los Angeles
    Posts
    850
    DNF$
    3,616
    Bank
    0
    Total DNF$
    3,616
    Donate  

    Re: included content across domains

    Quote Originally Posted by MovieDomains
    Is this possible, without resorting to frames?

    For instance, I have some content at abc.com that I want to show up on a page at xyz.com. Short of copying and pasting it over every time it changes, is there a relatively easy html solution for me?

    I know how to do this from page to page within a site, but my system doesn't seem to work with absolute urls.
    i use php/mysql for my domains. all of them point to my server ip and my default index page reads in the domain name (via environental vars) and then queries a database for content, hit counting, and other stuff. really powerful and pretty easy. i don't know what i'd do with it.
    HEAVYLIFTING.COM
    investing in domains and other media

Similar Threads

  1. 111 Miscellaneous Domains ON SALE - .Org & .Info - Many OneWorders
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 0
    Last Post: 04-06-2004, 12:48 PM
  2. Five-Day .INFO SALE - Part Five - 133 Domains Including StockResearch.info
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 3
    Last Post: 03-31-2004, 03:00 PM
  3. Five-Day .INFO SALE - Part Four - 110 Domains Including PrivateSchool.info
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 2
    Last Post: 03-30-2004, 12:15 PM
  4. Prime .BIZ Bonanza - Part Three: 92 Business Domains Incl. Orchard.biz
    By Duke in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 2
    Last Post: 02-15-2004, 04:07 PM
  5. $15 Domains (Reduced to $13 now), All Kinds of Domains!!
    By SlashRoot.Com in forum Domains for Sale (Domain Sales) - Fixed Prices Above $100
    Replies: 10
    Last Post: 09-07-2003, 12:46 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

Domain name forum recommended by Domaining.com