473,492 Members | 4,279 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

Simple information gathering script req..

I'm after a *simple* script to log each visitor to a website. All
I actually need is the visitor's reported IP address whether
genuine, proxied or hidden. Their reported browser type would be
an advantage, regardless of what browser is actually used.

Anyone know of anything simple and preferably free that will do
this? The site is hosted on a FreeBSD server with access to
CGI-Bin but it does not seem to have a server-side stats log.

I am aware of the value (or not) of any information gathered by
such means, however I still require it. Just something to log the
information presented by each visit please.

Many thanks and regards,
Mike.
Jul 23 '05 #1
31 1816
In alt.html,alt.comp.lang.php,comp.lang.javascript Mike said:
I'm after a *simple* script to log each visitor to a website.


i know. see uk.net.web.authoring

What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html

--
the facts and opinions expressed by brucies
l i t t l e v o i c e s
are not necessarily the same as those held by brucie.
Jul 23 '05 #2
Mike wrote:
I'm after a *simple* script to log each visitor to a website. All
I actually need is the visitor's reported IP address whether
genuine, proxied or hidden. Their reported browser type would be
an advantage, regardless of what browser is actually used.

Anyone know of anything simple and preferably free that will do
this? The site is hosted on a FreeBSD server with access to
CGI-Bin but it does not seem to have a server-side stats log.

I am aware of the value (or not) of any information gathered by
such means, however I still require it. Just something to log the
information presented by each visit please.

Many thanks and regards,
Mike.


http://www.alt-php-faq.org/local/24/
Jul 23 '05 #3
brucie <sh**@usenetshit.info> wrote:
In alt.html,alt.comp.lang.php,comp.lang.javascript Mike said:
I'm after a *simple* script to log each visitor to a website.
i know. see uk.net.web.authoring


Seen and answered, hope you approve (sic).
What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html


I'll play your fucking stupid game, go on then, what is the
accepted way to share a message across multiple newsgroups?
Jul 23 '05 #4
King of Red Lions <thaynes/no_spam/@gawab.com> wrote:
Mike wrote:
I'm after a *simple* script to log each visitor to a website. All
I actually need is the visitor's reported IP address whether
genuine, proxied or hidden. Their reported browser type would be
an advantage, regardless of what browser is actually used.

Anyone know of anything simple and preferably free that will do
this? The site is hosted on a FreeBSD server with access to
CGI-Bin but it does not seem to have a server-side stats log.

I am aware of the value (or not) of any information gathered by
such means, however I still require it. Just something to log the
information presented by each visit please.
http://www.alt-php-faq.org/local/24/


Hmm.. Not sure if that's what I'm after, although the problem
might just be me being all newbie and thick. I'll have a read and
thanks anyway.

Mike.
Jul 23 '05 #5

"Mike" <fi**@reply.to> wrote in message
news:30*************@uni-berlin.de...
brucie <sh**@usenetshit.info> wrote:
In alt.html,alt.comp.lang.php,comp.lang.javascript Mike said:
I'm after a *simple* script to log each visitor to a website.


i know. see uk.net.web.authoring


Seen and answered, hope you approve (sic).
What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html


I'll play your fucking stupid game, go on then, what is the
accepted way to share a message across multiple newsgroups?


Well, if you weren't such a dumbass, you'd have clicked on the link that
Brucie so kindly supplied to you and you'd have gotten the answer to that
question.

Here's a hint - if you're asking people for help, don't treat them like an
asshole and expect to get kindness in return. Remember, it is *you* who've
come here for help, not the other way around.
--
-Karl Core
Please Support "Project Boneyard":
http://www.insurgence.net/info.aspx?...&item=boneyard
Jul 23 '05 #6
"Karl Core" <ka**@NOSPAMkarlcore.com> wrote:

"Mike" <fi**@reply.to> wrote in message
news:30*************@uni-berlin.de...
brucie <sh**@usenetshit.info> wrote:
In alt.html,alt.comp.lang.php,comp.lang.javascript Mike said:

I'm after a *simple* script to log each visitor to a website.

i know. see uk.net.web.authoring
Seen and answered, hope you approve (sic).
What is the accepted way to share a message across multiple newsgroups?
http://smjg.port5.com/faqs/usenet/xpost.html


I'll play your fucking stupid game, go on then, what is the
accepted way to share a message across multiple newsgroups?


Well, if you weren't such a dumbass, you'd have clicked on the link that
Brucie so kindly supplied to you and you'd have gotten the answer to that
question.


Are you serious? You are serious aren't you! rofl.
Here's a hint - if you're asking people for help, don't treat them like an
asshole


Bzzzzt americanism detected.. can't translate.. abort.. bzzzzt!

Ahh.. That's why you didn't understand my other post, irony is
lost on you lot isn't it.

Here's a hint: I have received other quite reasonable responses
to which I have replied with similar reasonableness and offered
my gratitude to. Now go ask yourself why you think I would
respond differently to our "brucie".

When you get stuck (as you inevitably will), click this;
<11****************@usenetshit.info> and this;
<1f***************@usenetshit.info>

hth.
Jul 23 '05 #7
Mike typed:
I'm after a *simple* script to log each visitor to a website. All
I actually need is the visitor's reported IP address whether
genuine, proxied or hidden. Their reported browser type would be
an advantage, regardless of what browser is actually used.

Anyone know of anything simple and preferably free that will do
this? The site is hosted on a FreeBSD server with access to
CGI-Bin but it does not seem to have a server-side stats log.

I am aware of the value (or not) of any information gathered by
such means, however I still require it. Just something to log the
information presented by each visit please.

Many thanks and regards,
Mike.


maybe you can make something of this.... do you have access to php?

place it in a standard included header file or somthing...

<?php
$logFile = "log.txt";
$logRec = "REMOTE_ADDR=". $_SERVER["REMOTE_ADDR"] . ",
HTTP_USER_AGENT=" . $_SERVER["HTTP_USER_AGENT"];
$logRec .= "\n";
$logFP = fopen ($logFile, 'a');
fputs ($logFP, $logRec);
fclose($logFP);
?>

Jul 23 '05 #8
added news:uk.net.web.authoring

"Disco Octopus" <di****************@yahoo.com> wrote:
Mike typed:
I'm after a *simple* script to log each visitor to a website. All
I actually need is the visitor's reported IP address whether
genuine, proxied or hidden. Their reported browser type would be
an advantage, regardless of what browser is actually used.

Anyone know of anything simple and preferably free that will do
this? The site is hosted on a FreeBSD server with access to
CGI-Bin but it does not seem to have a server-side stats log.

I am aware of the value (or not) of any information gathered by
such means, however I still require it. Just something to log the
information presented by each visit please.
maybe you can make something of this.... do you have access to php?
Yes, the site is hosted in a *nix environment so I assume it will
work.
place it in a standard included header file or somthing...

<?php
$logFile = "log.txt";
$logRec = "REMOTE_ADDR=". $_SERVER["REMOTE_ADDR"] . ",
HTTP_USER_AGENT=" . $_SERVER["HTTP_USER_AGENT"];
$logRec .= "\n";
$logFP = fopen ($logFile, 'a');
fputs ($logFP, $logRec);
fclose($logFP);
?>


That is excellent and it worked!!! Thank you, thank you, thank
you, thank you, thank you, thank you, thank you, thank you, thank
you, thank you, thank you, thank you.. etc.

It would be better if it worked in a html page mind. As I
understand it, google prefers .html pages for indexing, so this
can't be used in the home page.

But thank you, it is certainly good enough. :-)

Regards,
Mike.

Jul 23 '05 #9
I noticed that Message-ID: <30*************@uni-berlin.de> from Mike
contained the following:
That is excellent and it worked!!! Thank you, thank you, thank
you, thank you, thank you, thank you, thank you, thank you, thank
you, thank you, thank you, thank you.. etc.

And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
person accessing your page huh?

Ah well, as long as you're happy.
--
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/
Jul 23 '05 #10
Geoff Berrow <bl******@ckdog.co.uk> wrote:
I noticed that Message-ID: <30*************@uni-berlin.de> from Mike
contained the following:
That is excellent and it worked!!! Thank you, thank you, thank
you, thank you, thank you, thank you, thank you, thank you, thank
you, thank you, thank you, thank you.. etc.

And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
person accessing your page huh?


No.. The actuall IP is not important, just as long as I get stats
that show an IP for each visit.

Is is *impossible* to guarantee the ID of visitors to a website.
Imagine if everyone visited via aol.com, guardster.com,
anonymiser.com or any one of the more dubious offerings from
places like stayinvisible.com.. Such stats would be useless if
relied upon for actual identification.

However, many people do not know of such facilities, or even why
they might use them, and so some stats will give an indication of
where *some* traffic originates.

This is all I am after:

1.) How much traffic.
2.) Where does it claim to originate
3.) What is the claimed browser (not essential).

All I need is the numbers, I have said this repeatedly.
Ah well, as long as you're happy.


It's a start.
Jul 23 '05 #11
Geoff Berrow wrote:
I noticed that Message-ID: <30*************@uni-berlin.de> from Mike
contained the following:

That is excellent and it worked!!! Thank you, thank you, thank
you, thank you, thank you, thank you, thank you, thank you, thank
you, thank you, thank you, thank you.. etc.


And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
person accessing your page huh?


<http://www.phpfreaks.com/phpref/52.php>

Whether this is a person or a bot, whether that person is using a proxy,
or whatever, is another matter. But, yes, $_SERVER['REMOTE_ADDR'] will
give you the IP address of the requesting client.

--
Matt Bradley
"Myths which are believed in tend to become true"
-George Orwell
Jul 23 '05 #12
Matt Bradley <my********@equaliser.net> wrote:
Geoff Berrow wrote:
I noticed that Message-ID: <30*************@uni-berlin.de> from Mike
contained the following:

That is excellent and it worked!!! Thank you, thank you, thank
you, thank you, thank you, thank you, thank you, thank you, thank
you, thank you, thank you, thank you.. etc.

And you think that $_SERVER['REMOTE_ADDR'] is giving you the IP of the
person accessing your page huh?


<http://www.phpfreaks.com/phpref/52.php>

Whether this is a person or a bot, whether that person is using a proxy,
or whatever, is another matter. But, yes, $_SERVER['REMOTE_ADDR'] will
give you the IP address of the requesting client.


Indeed.. I have tested it via several different clients and it
works very well.
Jul 23 '05 #13
On Wed, 17 Nov 2004, Matt Bradley wrote:
Whether this is a person or a bot, whether that person is using a proxy, or
whatever, is another matter. But, yes, $_SERVER['REMOTE_ADDR'] will give you
the IP address of the requesting client.


or proxy, or gateway.
Jul 23 '05 #14
Mike <fi**@reply.to> writes:
It would be better if it worked in a html page mind. As I
understand it, google prefers .html pages for indexing, so this
can't be used in the home page.


There's no real need for a php page to end in .php although that
depends on the friendliness of your system admin and/or the ability
for you to use some kind of local configuration like .htaccess.

Having said that, are you sure "google prefers .html". It would seem
odd for a search engine to differentiate based on delivery method.

--
Richard Watson
http://www.opencolo.com/
High Quality, Value for money colocation
Jul 23 '05 #15
"Richard Watson" <ti********@doilywood.org.uk> wrote:
Mike <fi**@reply.to> writes:
It would be better if it worked in a html page mind. As I
understand it, google prefers .html pages for indexing, so this
can't be used in the home page.
There's no real need for a php page to end in .php although that
depends on the friendliness of your system admin and/or the ability
for you to use some kind of local configuration like .htaccess.


Ok.. I'll check that.
Having said that, are you sure "google prefers .html". It would seem
odd for a search engine to differentiate based on delivery method.


Not sure no, it is one of those urban whispers but seems
widespread enough to have some merit.
Jul 23 '05 #16

"Mike" <fi**@reply.to> wrote in message
news:30*************@uni-berlin.de...
"Richard Watson" <ti********@doilywood.org.uk> wrote:

<snip>
Having said that, are you sure "google prefers .html". It would seem
odd for a search engine to differentiate based on delivery method.


Not sure no, it is one of those urban whispers but seems
widespread enough to have some merit.


That's what it is, urban legend.

Google will happily take about almost anything unless you have gazillion
variables in dynamic page ulrs. More there are variables, more likely google
(or other searchbots) will spider slower or go only so deep to pages (to not
get in endless loop situations).
Jul 23 '05 #17

"Mike" <lo**@reply.to> wrote in message
news:30*************@uni-berlin.de...
":::Jerry::::" <me@privacy.net> wrote:
"Mike" <fi**@reply.to> wrote in message
news:30*************@uni-berlin.de...

<snip>

<PLONK>

<snip abuse>

Thanks for replying with your changed user ID, I suspect you have just
proved yourself to be the troll and man of self abuse many (I suspect) are
starting to think you are...

Jul 23 '05 #18
":::Jerry::::" <me@privacy.net> wrote:

"Mike" <lo**@reply.to> wrote in message
news:30*************@uni-berlin.de...
":::Jerry::::" <me@privacy.net> wrote:
>"Mike" <fi**@reply.to> wrote in message
>news:30*************@uni-berlin.de...
>
><snip>
>
><PLONK>

<snip abuse>

Thanks for replying with your changed user ID, I suspect you have just
proved yourself to be the troll and man of self abuse many (I suspect) are
starting to think you are...


I was proving a point.. That you know less about web authoring
than you do about usenet, which is precisely *nothing*.

Let us not forget your initial post to this thread in which you
said... "you come over as an angry wanker".

And *you* charge *me* with abuse?

Piss off you tosser.
Jul 23 '05 #19
Mike wrote:
":::Jerry::::" wrote:
man of self abuse

tosser


Oh, very nice.

Who are you and why have you brought this to alt.html?
Jul 23 '05 #20
"W˙rm" <no*************@north.invalid> wrote:

"Mike" <fi**@reply.to> wrote in message
news:30*************@uni-berlin.de...
"Richard Watson" <ti********@doilywood.org.uk> wrote:<snip>
>Having said that, are you sure "google prefers .html". It would seem
>odd for a search engine to differentiate based on delivery method.


Not sure no, it is one of those urban whispers but seems
widespread enough to have some merit.


That's what it is, urban legend.


Hmm.
Google will happily take about almost anything unless you have gazillion
variables in dynamic page ulrs. More there are variables, more likely google
(or other searchbots) will spider slower or go only so deep to pages (to not
get in endless loop situations).


All take this under advisement. ;)

Jul 23 '05 #21
Neal <ne*****@yahoo.com> wrote:
Mike wrote:
":::Jerry::::" wrote:
man of self abuse tosser


Oh, very nice.


Really? Here try this...

":::Jerry::::" <me@privacy.net> wrote:
<snip ill-tempered rants>

I don't know you from Adam, or "brucie", so why do you come over as an angry
wanker ?...


LOL.

Jul 23 '05 #22
Neal <ne*****@yahoo.com> wrote:
Mike wrote:
":::Jerry::::" wrote:
man of self abuse tosser


Oh, very nice.


Oh lol you twat.

Really? Here try this...

":::Jerry::::" <me@privacy.net> wrote:
<snip ill-tempered rants>

I don't know you from Adam, or "brucie", so why do you come over as an angry
wanker ?...


LOL.

Jul 23 '05 #23
Neal <ne*****@yahoo.com> wrote:
Mike wrote:
":::Jerry::::" wrote:
man of self abuse

tosser


Oh, very nice.

Who are you and why have you brought this to alt.html?


I'm a cunt.

hth.
Jul 23 '05 #24
On Fri, 19 Nov 2004 00:30:37 +0000, in uk.net.web.authoring Jerry Adams
<Je***@home.invalid> wrote:
Neal <ne*****@yahoo.com> wrote:
Mike wrote:
":::Jerry::::" wrote:
man of self abuse
tosser
Oh, very nice.

Who are you and why have you brought this to alt.html?


I'm a cunt.


there's a lot of it about.
hth.


itdoes.
Jul 23 '05 #25
Mike <fi**@reply.to> wrote:
Oh lol you twat.


Lol. LOL!!

Plonk!
Jul 23 '05 #26
In article <41***************@news.octanews.com>
Sara <Sa**@people.net> wrote:

On Fri, 19 Nov 2004 00:30:37 +0000, in uk.net.web.authoring Jerry Adams
<Je***@home.invalid> wrote:
Neal <ne*****@yahoo.com> wrote:
Mike wrote:
":::Jerry::::" wrote:
> man of self abuse
tosser

Oh, very nice.

Who are you and why have you brought this to alt.html?


I'm a cunt.


there's a lot of it about.
hth.


itdoes.

Yawn.





Jul 23 '05 #27
Angor <ej*******@hotmail.com> wrote:
In article <41***************@news.octanews.com>
Sara <Sa**@people.net> wrote:

On Fri, 19 Nov 2004 00:30:37 +0000, in uk.net.web.authoring Jerry Adams
<Je***@home.invalid> wrote:
>Neal <ne*****@yahoo.com> wrote:
>
>>Mike wrote:
>>> ":::Jerry::::" wrote:
>>>> man of self abuse
>>> tosser
>>
>>Oh, very nice.
>>
>>Who are you and why have you brought this to alt.html?
>
>I'm a cunt.


there's a lot of it about.
>hth.


itdoes.

Yawn.


You really should get more sleep.
Jul 23 '05 #28
":::Jerry::::" <me@privacy.net> wrote:
"Mike" <si**@s.a.parrot> wrote in message
news:30*************@uni-berlin.de...
":::Jerry::::" <me@privacy.net> wrote:
>
>"Mike" <lo**@reply.to> wrote in message
>news:30*************@uni-berlin.de...
>> ":::Jerry::::" <me@privacy.net> wrote:
>> >"Mike" <fi**@reply.to> wrote in message
>> >news:30*************@uni-berlin.de...
>> >
>> ><snip>
>> >
>> ><PLONK>
><snip abuse>
>
>Thanks for replying with your changed user ID, I suspect you have just
>proved yourself to be the troll and man of self abuse many (I suspect)are >starting to think you are...
I was proving a point.. That you know less about web authoring
than you do about usenet, which is precisely *nothing*.


And in doing so you admit to being a troll...


Not in the slightest, it is you who can't quit. You're a disgrace
to your so called frineds in this group, if you still have any.
Now kindly go and play with your ego in private, only young children tend to
do it in front of others in public.....


Which bit of "piss off" are you struggling with?
Jul 23 '05 #29
Mike <fi**@reply.to> wrote:


My apologies for this recent thread turning sour in here. It
wasn't my intention.
Jul 23 '05 #30
"Disco Octopus" <di****************@yahoo.com> wrote:
Mike typed:
I'm after a *simple* script to log each visitor to a website.
<..>
maybe you can make something of this.... do you have access to php?
place it in a standard included header file or somthing...

<?php
$logFile = "log.txt";
$logRec = "REMOTE_ADDR=". $_SERVER["REMOTE_ADDR"] . ",
HTTP_USER_AGENT=" . $_SERVER["HTTP_USER_AGENT"];
$logRec .= "\n";
$logFP = fopen ($logFile, 'a');
fputs ($logFP, $logRec);
fclose($logFP);
?>


I have been using this for a few days now and it works very well
so first of all thank you.

Second, is it possible to add a date and time field to the
information gathered, or at least the date? Then I could open the
txt file in Excel and analyse it [read: delude myself :) ] to my
heart's content. Cheers.

And again, many thanks,
Mike.
Jul 23 '05 #31
$logRec = date( 'Y-m-d H:i:s ' )
.. 'REMOTE_ADDR='. $_SERVER['REMOTE_ADDR']
.. ', HTTP_USER_AGENT=' . $_SERVER['HTTP_USER_AGENT'];
Jul 23 '05 #32

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

20
5154
by: Matthew Thorley | last post by:
My friend sent me an email asking this: > I'm attemtping to decide which scripting language I should master and > was wondering if it's possible to do > these unixy awkish commands in python:...
10
1404
by: Oli | last post by:
Hi Folks, Alright, I have a textbox called "A" and the value in that textbox is "B". When the user presses submit I want A : B to appear on the page. How do I do it? I appreciate that this...
2
2373
by: Boban Dragojlovic | last post by:
I'm building a complex web-based reservations system. Gathering the user's data requires between 8 and 15 pages (depending on which options they are interested in). I use the "Session" object to...
27
4578
by: one man army | last post by:
Hi All- I am new to PHP. I found FAQTS and the php manual. I am trying this sequence, but getting 'no zip string found:'... PHP Version 4.4.0 $doc = new DomDocument; $res =...
2
3241
by: Tamarin | last post by:
Hello, I'm an HTML coder, and am learning how to integrate JS and PHP into form functions. I'm trying to engineer a form that will return the user's IP address as a hidden input field. I...
3
5897
by: dittytwo | last post by:
Hi all I have been looking around the web and can't seem to find a solution the solution that i have found and manipulated seems to bring back the whole list of currently running process's...
18
3577
by: netrom | last post by:
Since I found this very helpful forum and friendly people, I have a small request. I use AIX Unix and would like to know if there's a simple way how to do a kind of compare between two files....
0
1151
by: =?Utf-8?B?R3JlZw==?= | last post by:
I'm working on a C# web-site application. I am interested in gathering some information about those that visit each page of my site. I'd like to log such information as Computer Name, Computer IP...
9
6159
by: gjones | last post by:
I have installed Office 2007 Ultimate onto my Windows Vista laptop. The install was successfull but each time I open an office app such as word or access, I get a Gathering information and preparing...
0
7118
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6980
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7157
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
1
6862
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7364
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5452
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4886
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
1
637
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
282
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.