?php
//untested code:
session_start();
if (!isset($_SESSION['username'])){
require 'login.inc'; //login form to set $_SESSSION['username']
exit;
}
$username_sql = mysql_real_escape_string($_SESSION['username']);
$self_sql = mysql_real_escape_string($_SERVER['PHP_SELF']);
Hello
I am new to php and I would like some guidance from those who have a bit more
expereince with PHP
I will be attempting to do a bit of tracking and web analytics. Basically, the
user will login
and from there everything that he clicked will be recorded in a database and
analyzed
i.e
Storing the document that is being called and get paramaters on a DB
is very simple
You would have an include like
$doc = $_SERVER['PHP_SELF'];
$get_vars = serialize($_GET);
mysql_query('INSERT INTO logs (page, vars) VALUES (' . $doc . ', '
. addslashes($get_vars) . ')');
Of course you'd need
What you describe is certainly possible, and many sites have this
functionality.
If you're just starting out however, look into Google Analytics. It gives
you more info than you care to imagine and is free. It's also takes 2secs to
install (except I think there's a waiting list to get your
Not really, it's instant now. You just have to have a google account.
On 12/6/06, Edward Kay [EMAIL PROTECTED] wrote:
What you describe is certainly possible, and many sites have this
functionality.
If you're just starting out however, look into Google Analytics. It gives
you more info than
Rick. wrote:
Hello
I am new to php and I would like some guidance from those who have a bit more
expereince with PHP
I will be attempting to do a bit of tracking and web analytics. Basically,
the user will login
and from there everything that he clicked will be recorded in a
You could look for Apache logs analysers, too
vincent
-Original Message-
From: Rick. [mailto:[EMAIL PROTECTED]
Sent: Wed 6/12/2006 12:48
To: php-general@lists.php.net
Subject: [PHP] PHP analytics
Hello
I am new to php and I would like some guidance from those who have a bit more
Do those log GET params?
On 12/6/06, Vincent DUPONT [EMAIL PROTECTED] wrote:
You could look for Apache logs analysers, too
vincent
-Original Message-
From: Rick. [mailto:[EMAIL PROTECTED]
Sent: Wed 6/12/2006 12:48
To: php-general@lists.php.net
Subject: [PHP] PHP analytics
Hello
I
8 matches
Mail list logo