Generate Username from User First and Last Name – PHP
I recently needed to generate username based on first and last name of Facebook and Google users. So I created PHP functions that achieve the results I wanted.
Using WordPress Akismet Plugin to Check Spam
Whether you’re developing a custom contact form, comment or testimonial section in your WordPress site, you will need a strong anti-spam solution to protect yourself from bombardment of Spam content. Who else can give you better protection than inbuilt Akismet plugin in WordPress.
Backup Website and Database using PHP exec()
PHP exec() function is usually disabled in most shared web hosting servers because of security reasons, but if your host allows this or you are on VPS or dedicated server, you should be able to use exec commands to backup your website or mysql database. Before you start, using code below check whether exec is enabled, if it fails you should ask your host to make sure it is even allowed!