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. 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.
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/
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?
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.
"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
"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.
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);
?>
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.
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/
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.
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
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.
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.
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
"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.
"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).
"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...
":::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.
Mike wrote: ":::Jerry::::" wrote: man of self abuse tosser
Oh, very nice.
Who are you and why have you brought this to alt.html?
"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. ;)
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.
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.
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.
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.
Mike <fi**@reply.to> wrote: Oh lol you twat.
Lol. LOL!!
Plonk!
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.
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.
":::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?
Mike <fi**@reply.to> wrote:
My apologies for this recent thread turning sour in here. It
wasn't my intention.
"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.
$logRec = date( 'Y-m-d H:i:s ' )
.. 'REMOTE_ADDR='. $_SERVER['REMOTE_ADDR']
.. ', HTTP_USER_AGENT=' . $_SERVER['HTTP_USER_AGENT']; This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
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:...
|
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...
|
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...
|
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 =...
|
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...
| |
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...
|
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....
|
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...
|
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...
|
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,...
|
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...
| |
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,...
|
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...
|
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...
|
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,...
|
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...
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |