Okay...
THANKS Mark for helping.
This is very, very weird. It worked and then it did not work. It worked one time and the stopped. I guess I don't have a clue and am VERY frustrated because i read examples how to this and I do it and it does not work.
Obviously I am missing something very small and simple.
I guess I should start at beginning:
I have an include file, which has the 2 functions and then all the php pages.
The first thing in each php page is this:
<?
include('getstats.php');
insertstats();
trackvisitor(getenv("PATH_INFO"));
?>
Here a more complete version of getstats:
<?php
function insertstats() {
session_start();
// only insert one record per session per visitor
if (!isset($HTTP_SESSION_VARS['ses_visitorid'])) {
$res = mysql_query($sql);
$newvisitorid = mysql_insert_id();
$ses_visitorid = $newvisitorid;
session_register('ses_visitorid');
global $ses_visitorid;
//this does not work
echo $ses_visitorid;
}
}
function trackvisitor($addpage) {
session_start();
//this does not work
echo $ses_visitorid;
}
?>
Couple things, Is this concept/idea really going to work on the web? Will I run into issues like sessions getting mixed up or something?
I have it working on my local (windows) using php version 4.1.1 using _SESSION.
But my provider uses unix with 4.0.6.
I can't get it work on the provier server.
THANKS AGAIN
larry