Code Newbie
News     Forums     Search     Members     Sign Up    

My Code Newbie
Username

Password

Articles/Snippets
ASP Classic
ASP.NET
C
C#
C++
HTML / CSS
Java
Javascript
Linux / BSD
Perl
PHP
Python
Ruby
SQL
VB 6
VB.NET

C.N. Friends
  Planet Rome

Link to Us!
Code Newbie
  Code Newbie
    forums
Old 05-12-2004, 12:09 AM   #1 (permalink)
infinite_root
Registered User
 
infinite_root's Avatar
 
Join Date: Apr 2004
Posts: 26
infinite_root is on a distinguished road
Logs

Hi Gurus out there,

I know this ain't the right forum for my question, nonetheless, just wanna make a good chance to be heard.

I have a requirement on logging chat sessions. I am using phpopenchat-3x but the program have no capabilities.

Anyone care to share your wisdom on this? In case you have encountered such a requirement. Or you may point me on the right track to accomplish my task.

Thanks and more power.
infinite_root is offline   Reply With Quote
Old 05-12-2004, 04:47 AM   #2 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
do you want to log them to mysql? maybe you can add a function that triggers when a user sends a message. this function will just take the username and message and insert it into a table. the table can have a timestamp field to log the time.

is that what you're thinking of?
__________________
Mike
sde is offline   Reply With Quote
Old 05-12-2004, 05:38 AM   #3 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
http://pear.php.net/package/Log

I'd check out the logging pear class. You can select what type of log you want (file, sql, syslog, sqlite, mail, etc.) so if you ever need to change the format down the road it'll be much easier.

I haven't used this class yet, but from looking at the API in the past, it seemed very easy to integrate into any application.

-r
idx is offline   Reply With Quote
Old 05-12-2004, 06:24 AM   #4 (permalink)
sde
Moderator
 
sde's Avatar
 
Join Date: May 2002
Location: us.ca
Posts: 4,487
sde is on a distinguished road
ah good one! i've only browsed the pear repository .. i've never really implemented it. i'd probably save loads of time instead of writting everything from scratch.
__________________
Mike
sde is offline   Reply With Quote
Old 05-12-2004, 08:04 PM   #5 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
Quote:
Originally posted by sde
ah good one! i've only browsed the pear repository .. i've never really implemented it. i'd probably save loads of time instead of writting everything from scratch.
Yes, I tend to do the same thing. Although I did have a project where I needed to do various kinds of date calculation. The Date/Calc.php class was very useful.

-r
idx is offline   Reply With Quote
Old 05-12-2004, 08:58 PM   #6 (permalink)
infinite_root
Registered User
 
infinite_root's Avatar
 
Join Date: Apr 2004
Posts: 26
infinite_root is on a distinguished road
Quote:
Originally posted by idx
http://pear.php.net/package/Log

I'd check out the logging pear class. You can select what type of log you want (file, sql, syslog, sqlite, mail, etc.) so if you ever need to change the format down the road it'll be much easier.

I haven't used this class yet, but from looking at the API in the past, it seemed very easy to integrate into any application.

-r
Thanx very much for your help.

That's exactly what I need.

infinite_root is offline   Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 11:57 AM.


Powered by vBulletin® Version 3.7.0
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Optimization by vBSEO 3.0.0 RC8





Copyright © 2000-2008, Milano Interactive
Web Hosting provided by Portal 360 Web Hosting