Willkommen Gast. Bitte Einloggen oder Registrieren
 
Sprache wählen:
 
  Last Script Version: 20

  ÜbersichtHilfeSuchenEinloggenRegistrieren  
 
Seitenindex umschalten Seiten: 1
Thema versenden Drucken
include stat track solely via PHP? (Gelesen: 2834 mal)
JohannL
YaBB Newbies
*
Offline



Beiträge: 6
die vereinigten Staaten von Am
Geschlecht: male
include stat track solely via PHP?
02.09.09 um 16:01:25
 
Hello,

My site pages are entirely php5 based, and I'm hoping there is a non-js / non img variation of the track.php that I can include.

The /stat/config/tracking_code.php is a good idea, it just involves output that I am not looking for.  I emailed earlier with Reimar about the issue, and I believe he indicated that there was a way to invoke the statistic tracking without outputting html code.

I tend to keep much of my php include code one level below the web accessible root directory; PHP can use it, but Apache can't readily from there.

Generally, the PHP files on my site have as the first line

Code:
<?php include ($_SERVER['DOCUMENT_ROOT']."/../phpincludes/sitename-header.php"); ?>
<title> whatever </title> 



and at the bottom, a common footer file via

Code:
<?php include ($_SERVER['DOCUMENT_ROOT']."/../phpincludes/sitename-footer.php"); ?> 



I was hoping to add within the footer something similar to

Code:
include ($_SERVER['DOCUMENT_ROOT']."/stat/track.php");  



since there are already includes there.  I do like that feature from http://www.infosniper.net/geolocate-live-visits.php and I believe that PHP Web Stat can do this, I just don't know how. Smiley

I plan to integrate this method into wrappers for pdf files, as well as certain .txt documents to accurately track those as well.

I'm sure the standard javascript (with fallback to img method) is great for most folks, but I am hoping to account for traffic from non image aware / non js enabled devices as well.

As well, I can't readily interject html code into the txt or .pdf output files.  Pointers appreciated Smiley

Vielen Dank,

John  Smiley
Zum Seitenanfang
 

&&Thanks, John&&The Blarg
Homepage  
IP gespeichert
 
Seitenindex umschalten Seiten: 1
Thema versenden Drucken