Quick preview of how to open, edit and save some sort of text file (HTML, PHP, CSS, JS, etc).
An easy way to send an HTML email with an attachment.
This script shows how to escape characters in php
keys of arrays contain arrays
Checks to see if the email has certain characters.
This script will extract urls from an html string, and can either return the urls as they are in the html or as formatted urls with http://
This PHP script helps you execute SQL statements or .sql file with PHP. There is a good deal of tutorials for this but we are going to use mysqli and its built-in commands to quickly execute small or large number of SQL statements or .sql file with PHP. It's functionality is similar to "Import" option in Mysql database. Because it greatly simplifies the task of executing sql statements quickly and without any hassle. Since this is implemented in PHP core classes, you can use it in anywhere including any frameworks (you may need slight customization or need to find relevant statements in respective frameworks, but it always works).
Sometimes you need to do preg_replace on user input. Don't forget to escape all special characters or you'll get funny results.