Ok, I tried it and it changes everyone in usergroups 9 & 11, regardless of the time since their last post, to usergroup 2. Any ideas?
himm the line:
PHP Code:
if ($lastpost[dateline]>0 AND $lastpost[dateline]>$days)
should be
Quote:
if ($lastpost[dateline]>0 AND $lastpost[dateline]<$days)
It was not changing everyone but it was changing who posted in the last 30 days. Since you asked for the opposite, new line should do the trick
PHP Code:
what exactly does set_time_limit( ) function do? I appreciate any assistance.
buddy, by default PHP scripts are granted 30 seconds running time. (unless it is set otherwise in php configuration). If they exceed 30 seconds, they time out. However some scripts may need more running time so you can set how many seconds a script can run before it times out with set_time_limit() command.
I thought this script might take some time if user database is large so I put this command in the begining just in case to prevent time out error.