You might find this useful. The strategy is to make it impossible for the image to have a direct-to-file URL.
Deprecated and Headed for the Dustbin
By now, you have probably heard that some PHP features, while convenient, can also cause PHP security problems. This article discusses one of those, called register_globals. It is a thing you do not want. …
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions.
Consider email address RFCs:
Look at HTML5 form input element (with type=email) regex pattern: