homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Pubcon Gold Sponsor 2015!
Home / Forums Index / WebmasterWorld / Domain Names
Forum Library, Charter, Moderators: buckworks & webwork

Domain Names Forum

sharing domain names.
sharing domain names accross servers??

10+ Year Member

Msg#: 413 posted 6:50 pm on Nov 24, 2001 (gmt 0)

Hi all,

I wish to set up a virtual postcard service that I will host from my own server. My question is can I link to the relevant page on my server from another site but retain the domain name of the clients site. The effect would be that the user would not be aware of leaving the clients site. If this is possible could I do it multiple times on the one server for different clients?

I am quite new to setting up this kind of thing, but any advice or links would be greatly appreciated !




WebmasterWorld Senior Member 10+ Year Member

Msg#: 413 posted 8:11 pm on Nov 24, 2001 (gmt 0)

The simplest method would be to have the page on the clients site frame a page on your site. Any other solution would be rather technical and beyond the abilities of your average webmaster.


10+ Year Member

Msg#: 413 posted 1:16 pm on Nov 26, 2001 (gmt 0)

Thanks for your reply but I wasn't quite sure what you mean.

I think that you were suggesting that the page was put on the clients site to maintain the domain name. Thats fine, but could I then link to the php scripts and database on my server without any problems ??

Best. T.


10+ Year Member

Msg#: 413 posted 4:07 am on Dec 3, 2001 (gmt 0)

Hi tony,
If your client's server is running php you could use the readfile() [php.net] function:

echo @readfile("http://www.yourserver.com/directory/relevantfile.html");

This won't load any graphics though, so you'll have to keep a copy of those on your server with the same file path / structure. You'll then end up with a url similar to: "http://www.client.com/directory/readfile.php" and of course the page you want shown.
Hope this is what you're after.


10+ Year Member

Msg#: 413 posted 11:31 pm on Dec 3, 2001 (gmt 0)

Have the other sites create virtual domains which point to your server.

Such as:

postcards.otherdomain.com IN A (your IP)

then have your web server handle this virtual domain of theirs.

Global Options:
 top home search open messages active posts  

Home / Forums Index / WebmasterWorld / Domain Names
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved