hi all,
I have a script that is run from the command line whenever it receives an email. In order to reduce the chances of spam clogging things up, I want to compare the address that the email is coming from (it will always be only one). If the address doesn't match then stop the rest of the script running.
I have tried die() and exit() but neither seem to work? does anyone have any ideas on this one?
Edit: Would a case/switch/break control structure work? Are there any gotchas in using PHP on the command line