For Programmers: Free Programming Magazines  


Home > Archive > PHP Programming > June 2007 > How to know from where you come?









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author How to know from where you come?
Pablo

2007-06-27, 7:01 pm

Hi at all

I have a little problem (for you) that for me is a mission impossible.

I have two web site

The first site conain a link to the 2th. and 2th.web site contain a link to
the first.

I have a log1.txt an a log2.txt to control access.

I'ld want writeINTO THEM FROM WHERE VISITOR COME.

If visitor come from first web site clicking the link I want to write into
the log that visitors come from my first web site amd so on with the 2th.



Is it possible?

Thank in advance and best regards to all.


Iván Sánchez Ortega

2007-06-27, 7:01 pm

Pablo wrote:

> Is it possible?


Yes.

Do some research on HTTP referrers.

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

If you learn one useless thing every day, in a single year you'll learn
365 useless things.

Michael Fesser

2007-06-27, 7:01 pm

..oO(Iván Sánchez Ortega)

>Pablo wrote:
>
>
>Yes.
>
>Do some research on HTTP referrers.


And on how unreliable they are. What about URL parameters?

on site 1: <a href="http://site2.example.com?ref=site1">site 2</a>
on site 2: <a href="http://site1.example.com?ref=site2">site 1</a>

Micha
Iván Sánchez Ortega

2007-06-27, 7:01 pm

Michael Fesser wrote:

>
> And on how unreliable they are. What about URL parameters?


Unreliable as well?

--
----------------------------------
Iván Sánchez Ortega -ivansanchez-algarroba-escomposlinux-punto-org-

The very ink with which all history is written is merely fluid prejudice.
-- Mark Twain

Michael Fesser

2007-06-28, 7:00 pm

..oO(Iván Sánchez Ortega)

>Michael Fesser wrote:
>
>
>Unreliable as well?


Indeed. None of them is really reliable or secure.

Micha
Toby A Inkster

2007-06-28, 7:00 pm

Michael Fesser wrote:
> Iván Sánchez Ortega wrote:
>
>
> And on how unreliable they are.


They are "reliable enough" for *many* purposes.

--
Toby A Inkster BSc (Hons) ARCS
[G of HTML/SQL/Perl/PHP/Python/Apache/Linux]
[OS: Linux 2.6.12-12mdksmp, up 7 days, 14:46.]

Long-Awaited Zeldman Article
http://tobyinkster.co.uk/blog/2007/...eldman-in-time/
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2010 codecomments.com