21
yasir
Re: clear private mesages
  • 2006/8/31 18:39

  • yasir

  • Not too shy to talk

  • Posts: 109

  • Since: 2005/5/16


Quote:
untested

what kind of risk i have

22
irmtfan
Re: clear private mesages
  • 2006/9/3 11:24

  • irmtfan

  • Module Developer

  • Posts: 3419

  • Since: 2003/12/7


i cant purge my old unread pm in mp manager module and manually with a script because my PM table has a huge size about 400 MB.

is this possible to modify this?
any help would be really appreciated

my script is:

<?php
define
("user""USER");
define("pass""PASS");
define("host""localhost");
define("db""DB");


$cxn mysql_connect(host ,userpass);
mysql_select_db(db);

$delete_time time() - ( 30 24 60 60 );  // 30 days/month * 24 hrs/day
// * 60 minutes/hour * 60 seconds/min.

$sql "DELETE from `xoops_priv_msgs` WHERE `read_msg` = '0' AND `msg_time` < '$delete_time'";
//This script would delete everything older than 30 days that has been not read.

$result mysql_query($sql$cxn);
?>


by run this script my server will be down totally.

Login

Who's Online

162 user(s) are online (102 user(s) are browsing Support Forums)


Members: 0


Guests: 162


more...

Donat-O-Meter

Stats
Goal: $100.00
Due Date: May 31
Gross Amount: $0.00
Net Balance: $0.00
Left to go: $100.00
Make donations with PayPal!

Latest GitHub Commits