corsasport.co.uk
 

Corsa Sport » Message Board » Off Day » Javascript help.


New Topic

New Poll
  Subscribe | Add to Favourites

You are not logged in and may not post or reply to messages. Please log in or create a new account or mail us about fixing an existing one - register@corsasport.co.uk

There are also many more features available when you are logged in such as private messages, buddy list, location services, post search and more.


Author Javascript help.
Houckham
Member

Registered: 29th May 03
Location: Newcastle upon Tyne
User status: Offline
   25th Mar 04 at 02:18   View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 02:25   View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 02:27   View User's Profile U2U Member Reply With Quote

hahaha ok thanx mate
MULLER2
Member

Registered: 3rd Jun 02
Location: LONDON
User status: Offline
25th Mar 04 at 08:30   View User's Profile U2U Member Reply With Quote

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

Avatar

Registered: 21st Apr 00
User status: Offline
25th Mar 04 at 10:41   View Garage View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 12:16   View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 16:38   View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 16:40   View User's Profile U2U Member Reply With Quote

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
   25th Mar 04 at 17:19   View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 17:29   View User's Profile U2U Member Reply With Quote

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
25th Mar 04 at 17:54   View User's Profile U2U Member Reply With Quote

yeah your right im gonna have to use php. but im not that up on it.

ill give it a shot tho
cheers everyone

 
New Topic

New Poll

Corsa Sport » Message Board » Off Day » Javascript help. 22 database queries in 0.0114141 seconds