You are here: Re: exit link url variable? « PHP Programming Language « IT news, forums, messages
Re: exit link url variable?

Posted by Geoff Berrow on 10/09/06 23:52

Message-ID: <1160435253.194506.321650@e3g2000cwe.googlegroups.com> from
Robertcode contained the following:

>Hey all, I'm trying to create a custom stats script for my site, I'm
>new to php and I'm just wondering is there a way to tell what link
>someone clicked to leave my site?
>
>So if I've got links to section a, section b, section c, google, yahoo,
>msn and someone clicks on google I can record that.
>
I think you'll have to organise your links differently.

Instead of having links in the form of
<a href='http://www.google.com'>Google</a>
you could have:
<a href='links.php?http://www.google.com'>Google</a>

Then in links.php

<?php
$link=$_SERVER['QUERY_STRING'];
//Insert code to record link clicked here in db or file
header("Location: $link");
?>


--
Geoff Berrow (put thecat out to email)
It's only Usenet, no one dies.
My opinions, not the committee's, mine.
Simple RFDs http://www.ckdog.co.uk/rfdmaker/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация