Hello,
here is my situation:
abc.html has this code in it:
<img src="http://domain.com/test.php" height="1" width="1" />
text.php has this code in it:
<? include ("insert_stat.php");
session_start();
$counter++;
insert(9,$counter);
session_register("counter");
?>
The insert_stat.php file has all the functions to handle the process and save info to a database... basically it has a insert() function that does it.
All works except the counter does not increment.
Note: insert stat will save various stuff to the database.
I want the counter to "keep" and increment every time the visitor goes to another page with the same code.
it works if the php code is in a .php file.
Is there a workaround or can I somehow pass the session somehow?
My goal is to have a single line of code, as in the line of code in the html file, which that file could reside on any website, any server.
So, the php files/code resides on another server, which has a database that collects data.
THANKS for your HELP!!!