• Forum
  • Doc
  • Screenshots
  • Download
  • Donate
  • Contributors
  • Contact
  • Follow @phpfreechat
  • DEMO
  • Board index ‹ Version 1.x branch ‹ General Support (v1.x)
  • Change font size
  • FAQ
  • Register
  • Login

How to clear logs?

Moderators: OldWolf, re*s.t.a.r.s.*2

Post a reply
5 posts • Page 1 of 1

How to clear logs?

Postby JayInPA » Sun Jan 20, 2013 8:28 pm

Hi,

Is there a way to clear the log of the chat? I'd like it to start fresh every day, for example, or every time I log in as the admin. I can't seem to find a parameter or a command to do it, though. Is it something that would have to be done through a cron job? If so, what would the script be?

Thanks to anyone who can help me. I'm running V1.6, I believe.

Best wishes...

...Jay
JayInPA
New member
 
Posts: 5
Joined: Fri Jan 11, 2013 10:39 pm
Top

Re: How to clear logs?

Postby JayInPA » Sun Jan 20, 2013 8:29 pm

Sorry, just to clarify: I don't want to just clear my own screen. I want to completely clear the log so that no one else can see prior content, either.

Thanks...

...Jay
JayInPA
New member
 
Posts: 5
Joined: Fri Jan 11, 2013 10:39 pm
Top

Re: How to clear logs?

Postby OldWolf » Mon Jan 21, 2013 4:29 am

Are you just wanting to make it so new users don't see a history of the chat? If so, just set max_messages to 0.
Signature:
Read before Posting: Forum Rules
Note: I am unable to offer support through PM/e-mail at this time.
OldWolf
Site Admin
 
Posts: 1918
Joined: Sun Sep 23, 2007 5:48 am
Top

Re: How to clear logs?

Postby JayInPA » Mon Jan 21, 2013 7:11 pm

That's it exactly. Thanks so much!

Best wishes...

...Jay
JayInPA
New member
 
Posts: 5
Joined: Fri Jan 11, 2013 10:39 pm
Top

Re: How to clear logs?

Postby smartblogger » Wed Aug 07, 2013 8:07 am

You can use CSV files, or XML - your choice.

Unfortunately for you, fopen() is your best bet when working with file manipulation techniques.
There's also file() and file_get_contents() though.
http://www.360social.ae/
smartblogger
Member
 
Posts: 12
Joined: Tue May 14, 2013 12:24 pm
  • Website
Top


Post a reply
5 posts • Page 1 of 1

Return to General Support (v1.x)

Who is online

Users browsing this forum: No registered users and 7 guests

  • Board index
  • The team • Delete all board cookies • All times are UTC + 1 hour
Powered by phpBB® Forum Software © phpBB Group
Sign in
Wrong credentials
Sign up I forgot my password
.
jeu-gratuit.net | more partners
Fork me on GitHub