If, as Jane suggests, your host doesn't provide something, check out
ShortStat (http://www.shauninman.com/downloads/shortstat_v036b.zip) by
Shaun Inman. Very soon, the same Mr. Inman will be releasing Mint, a
hosted solution that, from all accounts of those lucky SOBs who've
gotten to try a pre-release, will blow away just about every other
stats package available. (http://www.haveamint.com/)


-Bob

--- Eric Richards <[EMAIL PROTECTED]> wrote:

> Hi PHP Group
> On each page of my web site I had a bit of javascript, that called up
> a
> common PHP page
> I was able to record the date, time, and more important what web page
> they
> came from to get my web page, a lot came from Google and I could see
> what
> they put into google to find my page,
> 
> However since the web server upgraded from PHP version 4.06 to 4.22
> this
> feature no longer works and only records the time on record.txt.
> I was going to do a SQL database or something but I never got around
> to it.
> 
> From Eric
> 
> 
> here is the Javascript____________________________________
> 
> <script language="JavaScript1.2" type="text/javascript">
> <!--
> if (top.frames.length!=0) top.location=self.document.location;
> ref = ""+escape(document.referrer);
> stringa="<img
>
src=\"http://www.WEBSITENAME.nz/FOLDER/FILE.php?width="+window.screen.width+
> "&site=page1&height="+window.screen.height+"&REFER="+ref+"\" border=0
> width=0 height=0 />";
> document.write(stringa);
> 
> // -->
> </script>
> 
> 
> 
> here is the PHP____________________________________
> <?php
> $space="_";
> $hour= (Date("\nH:i:s d-n\t"));
> $size=$width."*".$height;
> $entry=$hour.$site.$space.$size.$space.$time.$space.$REFER;
> $fp=fopen("record.txt","a");
> fwrite($fp,$entry);
> fclose($fp);
> 
> ?>
> 
> 
> 


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 


------------------------ Yahoo! Groups Sponsor --------------------~--> 
Fair play? Video games influencing politics. Click and talk back!
http://us.click.yahoo.com/T8sf5C/tzNLAA/TtwFAA/HKFolB/TM
--------------------------------------------------------------------~-> 

Community email addresses:
  Post message: [email protected]
  Subscribe:    [EMAIL PROTECTED]
  Unsubscribe:  [EMAIL PROTECTED]
  List owner:   [EMAIL PROTECTED]

Shortcut URL to this page:
  http://groups.yahoo.com/group/php-list 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/php-list/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 


Reply via email to