Завершено

Http_Referrer PHP Coding

I want to add some PHP coding to my site that will grab the visitor's http_referrer info and attach that info as a cookie. Then there would be some php coding on my site that would display certain html coding based on that info & if it matches.

For example:

If the referrering site = [url removed, login to view], then display [url removed, login to view]

If the referring site = [url removed, login to view], then display [url removed, login to view]

else display [url removed, login to view]

There will be multiple sites in the list. If from this domain name, show this, from this domain name, show that, etc. If none of the sites match, I need an else statement so there isn't any blank data or images shown to customers without any http_referrer info.

Now, this coding will need to work throughout the site. So if they land on our homepage and visit multiple pages of our site, it will work on all pages. It should also work if they come back at a later date.

I already have an existing php session script on my site for http_referrer and have included it below:

<?php

if (isset($_SERVER['HTTP_REFERER'])){

if (!isset($_COOKIE['mydomain'])) {

$referer = $_SERVER['HTTP_REFERER'];

$cookie_expire = time() + 60*60*24*730;//730 days

while (($data = $referer) !== FALSE)

{

if (strtoupper($data)==strtoupper($referer)){

setcookie("mydomain", $data, $cookie_expire, "/");

break;

}

}

}

}

?>

From my understanding, this should be very simple! Once done, you simply need to give me the code and I will implement it on our site.

Thanks!

Curtis

Квалификация: HTML, PHP

Показать больше session php, matches list, list matches, html homepage coding, coding sites, code coding, code orange, php coding, HTML coding, coding, banana, Apple script, php orange, script referrer, php homepage, coding implement, coding|, cookie referrer, session script, display date html

О работодателе:
( 2 отзыв(-а, -ов) ) Huntsville, United States

ID проекта: #1306642

Поручен:

paulrobin

Sir, Famous Engineering University Graduate [login to view URL] check PM.

$30 USD за 0 дней(-я)
(22 отзывов(-а))
4.2

6 фрилансеров(-а) в среднем готовы выполнить эту работу за $38

bruzli2005

Will be completed immediately. Can start now!

$30 USD за 0 дней(-я)
(127 отзывов(-а))
7.1
k1ng440

Professional web developer is ready get started right now. PLEASE NOTE: my Deadline is higher than i actually need. Please read private message for more information.

$50 USD за 2 дней(-я)
(95 отзывов(-а))
6.5
PHPsoldier

########################################################################################################################## DEAR SIR, THIS SHOULD BE FAIRLY EASY. LET ME DO IT FOR YOU. MANY THANKS... ################# Больше

$30 USD за 2 дней(-я)
(64 отзывов(-а))
6.0
rfuentescruz

Hello. This will be very easy. Please check my message in your inbox

$40 USD за 0 дней(-я)
(5 отзывов(-а))
3.3
spykecoders

********************************************.. YOUR SEARCH ENDS HERE .. ********************************************** GET IT DONE RIGHT THE FIRST TIME! Hello There, I look forward to talking to you further and getting Больше

$50 USD за 1 день
(6 отзывов(-а))
3.2
uniquecode1

Hi, Please see personal message.

$30 USD за 2 дней(-я)
(2 отзывов(-а))
3.1