Houckham
Member
Registered: 29th May 03
Location: Newcastle upon Tyne
User status: Offline
|
Hi
Does anyone know of how i can write a simple script that will monitor the number of clicks a link gets on a webpage and then output this in the form of a txt file.
Any help would be great
Cheers
|
drunkenfool
Member
Registered: 7th Feb 03
Location: Hereford Drives: Audi R8 V8
User status: Offline
|
try posting in general chat, or topping this in the morning. Most of us just talk shit on here at night, as you may have noticed!
|
Houckham
Member
Registered: 29th May 03
Location: Newcastle upon Tyne
User status: Offline
|
hahaha ok thanx mate
|
MULLER2
Member
Registered: 3rd Jun 02
Location: LONDON
User status: Offline
|
Hotscripts.com or search google. Its pretty simple to do - but why the hell you would wanna save to a txt file - I have NO idea. Uses a server side script and a database (PHP,MYSQL,ASP,SQL)
|
Tim
Site Administrator
Registered: 21st Apr 00
User status: Offline
|
To do it with a file you'd want to do it on a server-side script like ^ said... Perl is probably the most likely to be supported on your hosting package (cgi-bin should support it) but if you've got php and mysql database then it would be a lot faster and you wouldn't have problems with concurrent writing...
|
Houckham
Member
Registered: 29th May 03
Location: Newcastle upon Tyne
User status: Offline
|
yeah its php with MySQL database.
so shall i just search the web for one?
what exactly should i be putting in google?
|
MULLER2
Member
Registered: 3rd Jun 02
Location: LONDON
User status: Offline
|
quote: Originally posted by Houckham
yeah its php with MySQL database.
so shall i just search the web for one?
what exactly should i be putting in google?
Do you mean that your web hosts allow you to host and execute PHP & MySQL??
If so www.php.net is prob. one of the best places to start.
There are loads of PHP forums and tutorials about so simply do a search for PHP.
|
MULLER2
Member
Registered: 3rd Jun 02
Location: LONDON
User status: Offline
|
I'm not sure how good this example is (i'll take a look later) but is this something like what you are after?
http://s92527805.onlinehome.us/phpscripts.php?p=3
|
Houckham
Member
Registered: 29th May 03
Location: Newcastle upon Tyne
User status: Offline
|
did you see that script!
thats why i was thinking a javascript script would be better for what i want. and alot smaller.
but ill have a go at using that script now.
wish me luck
|
ed
Member
Registered: 10th Sep 03
User status: Offline
|
You can't use JavaScript though, cos thats client side... Are you worried about the size? Cos with PHP the script which you use is excecuted on the server and generates HTML which the user downloads, this means that download times are mot effected, unlike with JavaScript which takes ages to download...
|
Houckham
Member
Registered: 29th May 03
Location: Newcastle upon Tyne
User status: Offline
|
yeah your right im gonna have to use php. but im not that up on it.
ill give it a shot tho
cheers everyone
|