Jump to content

Passing Data from one Server to another


LuRKeR

Recommended Posts

Having some issues, hopefully you guys can identify a solution for me.

 

There are 7 Servers involved in this situation - Each with its own website.

 

Server 1 houses a page with content that is shared by the other 6 servers.

 

I need to change an image (logo) at the top of Server 1 page based upon which server they originally came from.

 

For example they are traveling from server 4, when they arrive at server 1 they see server 1 content however the image at the top will corrospond with correct brand in this example server 4's logo.

 

Cookies have not been a reliable solution considering they are usually disabled.

 

Please Help Guys, Any feedback is Fantastic!

 

Link to comment
Share on other sites

Alright I will try to be more specific

 

I have 7 Servers (7 Websites)

 

Website 1 on Server 1 has a page with Content

 

Website 2 - 7 on Server 2 -7 are Linking to Website 1 on Server 1

 

Website 1 on Server 1 Needs to have the Logo from the Website it came from at the top.

 

For Example

Website 1 has healthy food content

Website 2 is Burger King website

Website 3 is McDonalds website .... So on and So forth

 

When someone traveling from Website 2 (Burger King) to Website 1 (healthy Food Content) it needs to display the Burger King Logo in addition to the healthy food content

 

Example 2

When someone traveling from Website 3 to Website 1 it needs to display the McDonalds Logo in addition to the healthy food content

 

Link to comment
Share on other sites

I do not have database access to any of the server - Company Restiction

 

However you mentioned history - is there any way to pass information through the url ?

 

For Instance

A user clicks on the link on one of the pages, it adds information to the URL that the landing page could reconginze and execute the IF statement?

 

IF this is possible how would I got about doing so?

Link to comment
Share on other sites

Only issue with that is I have to specifically call that link from each page.

 

For Example

 

Website 2

<a href="link.com/target=logo1">etc.

 

Website 3

<a href="link.com/target=logo2">etc.

 

SO for the "Related Links" document; I could have used the same related links document for each website but now I would have to include 6 different files containing differnet links; This would making updates a hassle

 

My Goal is to elimante 1000 updates.

 

Don't Give up on me - Thoughts?

 

Link to comment
Share on other sites

There are lots of variables that are defined on each host that you can use, so if you had this link in a file and included it on sites 2-6:

 

echo '<a href="http://website1.com?ref=' . $_SERVER['HTTP_HOST'] . '">';

Then it would look like this on website2:

 

http://website1.com?referrer=website2.com

 

So on website1 you would use $_GET['referrer'] to know where it came from.

 

Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.