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 !
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 ??
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.