Posted by petersprc on 09/30/06 22:11
You can get the current file with the __FILE__ constant.
If you're interested in an online service, Google Analytics is a
powerful, free web statistics application that's easy to integrate into
your site. More info here:
http://www.google.com/analytics/
Best Regards,
John Peters
Steve Ray wrote:
> Guys
>
> I'm trying to write a function that will return that name of the page that
> you are currently viewing (and ultimately save this to a file)
>
> I want to then include this into a file that is included across the entirety
> of my site. The idea behind this is so that I can monitor which are the
> most popular pages on my site.
>
> ** I do not use a DB **
>
> I've found the PHP_SELF constant but this permanently returns (blank) when I
> display the contents of this onto the form
>
> Am I looking at the wrong info ?
>
> Ultimately can this be done ?
>
> In anticipation
>
> Steve
>
> ---------
> We don't stop playing because we get old
> We get old because we stop playing
Navigation:
[Reply to this message]
|