Jump to content


Equalto or greater than!

  • Please log in to reply
2 replies to this topic

#1 xyn

  • Members
  • PipPipPip
  • Advanced Member
  • 779 posts
  • LocationNorthampton

Posted 07 July 2006 - 11:21 AM

Hi Guys,
I've currently got a PM System and would like to update the "Limit" script to improve it. I was wondering whether it's a good idea to change it from:
die('The receiptants inbox is full');

Or should I use this:
if($num =< "$limit"){

#2 GingerRobot

  • Staff Alumni
  • Advanced Member
  • 4,086 posts
  • LocationUK

Posted 07 July 2006 - 11:31 AM

It looks like it shouln't be a problem as you are checking when the message is sent, but its probably safer to use the 2nd anyway.

#3 wildteen88

  • Staff Alumni
  • Advanced Member
  • 10,482 posts
  • LocationUK, Bournemouth

Posted 07 July 2006 - 11:33 AM

The first method is better. Also are you checking whether the recipients inbox is full when the sender sends a PM? I would only check whether the recipients inbox is full when the recipient goes to check their inbox instead. ALso rather than killing the script I'd put a notification in their inbox telling them their inbox is full, and or send an email too.

0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users