top_rung
asked on
How to gather statistics: PHP, session ID
Windows server 2003, MySQL, PHP, IIS
Is there a tool that will allow for the tracking of the ID# of dynamic pages (Ex. "index.php?id=2754")?
thanks.
Is there a tool that will allow for the tracking of the ID# of dynamic pages (Ex. "index.php?id=2754")?
thanks.
ASKER
Thanks, for your reply. here is more detail...
A client has a site that provides a web service for many individual customer's - essentially they will each have their own site. From the Index page. the users login and are taken to their respective account. once in the account, they have a list of items that belongs to them. If they click and item, it takes them to a detailed view of that item. The item is the ID that I need to track for each user. I need to see the statistics for each item.
I hope that makes sense.
Here is the url path during usage...
www.domain.com> (user logs-in) www.domain.com/iua/welcome.php> (user accesses an Item)www.domain.com/iua/index3.php?id=8489
A client has a site that provides a web service for many individual customer's - essentially they will each have their own site. From the Index page. the users login and are taken to their respective account. once in the account, they have a list of items that belongs to them. If they click and item, it takes them to a detailed view of that item. The item is the ID that I need to track for each user. I need to see the statistics for each item.
I hope that makes sense.
Here is the url path during usage...
www.domain.com> (user logs-in) www.domain.com/iua/welcome.php> (user accesses an Item)www.domain.com/iua/index3.php?id=8489
I understand your process a bit more now. You can use an intermideate page before the user gets taken to the item detail page. The new page just logs the item id then redirects to the item detail page.
www.domain.com> (user logs-in) www.domain.com/iua/welcome.php> (user accesses an Item)>(New page)logItemID.php?url=www.domain.com/iua/index3.php&id=8489
So basically instaed of the last link being pointed to the item detail page, it points to a new page and you pass the url of the item detail page and the id as URL varaibles.
The new page takes the ID and logs it into your log table (same process as in my previous post would still work here I think)
Then you redirect to the URL you passed to the new page.
-------------------------- ---------- ---------- ---------- ---------
Another method would be to write a function that takes the ID and records an entry into your log table. You'd place this function at the top of every page you want to track. Something like:
pseudo code
function append2log(ID){
receive ID
insert ID into log table
insert fields(IP, ID, DayofWeek, Anything_Else_You_Deem_Nec cesary)
}
I hope I explained that properly.
Would something like that achieve what you are trying to do?
www.domain.com> (user logs-in) www.domain.com/iua/welcome.php> (user accesses an Item)>(New page)logItemID.php?url=www.domain.com/iua/index3.php&id=8489
So basically instaed of the last link being pointed to the item detail page, it points to a new page and you pass the url of the item detail page and the id as URL varaibles.
The new page takes the ID and logs it into your log table (same process as in my previous post would still work here I think)
Then you redirect to the URL you passed to the new page.
--------------------------
Another method would be to write a function that takes the ID and records an entry into your log table. You'd place this function at the top of every page you want to track. Something like:
pseudo code
function append2log(ID){
receive ID
insert ID into log table
insert fields(IP, ID, DayofWeek, Anything_Else_You_Deem_Nec
}
I hope I explained that properly.
Would something like that achieve what you are trying to do?
ASKER
Sounds logical; I think both ideas would accomplish it.
Not being the web developer, can you give me a quick run down of how to apply the code? Just a generic understanding would be appreciated... like written in what, placed where, etc.
Thanks for your help
Not being the web developer, can you give me a quick run down of how to apply the code? Just a generic understanding would be appreciated... like written in what, placed where, etc.
Thanks for your help
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
Thanks so much. Increased points!
Here it is in pseudo code
function append2log(fileName){
receive file name
insert file name into log table
insert fields(IP, fileName, DayofWeek, Anything_Else_You_Deem_Nec
}
Just call the function at the top of your pages, if you're using includes, then you only have to include it in your header.
There is also webmin
http://www.webmin.com/