Regular expression for validating hostname
// Check if a user has provided the correct password by comparing what they typed with our hash $hasher- There are many ways to connect to a My SQL database in PHP.
You might find that some of these solutions work on different or older versions of PHP.
If that’s the case, A lot has changed in the PHP world in the years between Ubuntu 12.04 and 14.04.
In a shared-hosting environment, its configuration might restrict what you can do.
In order to retain a scrap of sanity, we’re going to focus on just one version of PHP: PHP 5.5.9-1ubuntu4.2.
It’s not a guide to common web application problems like cookie storage, caching, coding style, documentation, and so on. While it touches upon some security-related issues, you’re expected to do your own research when it comes to securing your PHP apps.