Securing WordPress AJAX forms using nonces

Securing WordPress AJAX forms using nonces

When creating a WordPress theme or plugin, AJAX is often used in order to enhance the user experience. In order to ensure security and protect your site against several types of attacks including CSRF, WordPress provides security tokens called nonces. In this article, I'll show you how to use nonces to protect AJAX requests on a WordPress site.


PHP: How to add expire headers for external scripts

PHP: How to add expire headers for external scripts

Every website is using external JavaScript files. They are required for example when using Google Analytics, or an ad provider like BuySellAds. In order to leverage browser caching and optimize your website speed, it is recommended that you add expire headers to your script, which you can't do on external files. In this article, I'll show you how to dynamically import external JavaScript files into your own website for better performance.


10 PHP functions and code snippets to work with dates

10 PHP functions and code snippets to work with dates

Dates are always an important part of any website or app, but they can be a little tricky to deal with, especially for beginners. Here is a list of a few PHP functions and code snippets that will definitely come in handy when dealing with dates.


Tutorial: Create a fixed announcement bar for your website

Tutorial: Create a fixed announcement bar for your website

Many websites are showing a fixed message bar at the bottom of the page in order to display an announcement, promotional offers or an important article recently published. Here is a super easy tutorial for doing so on your website.


Super useful PHP Snippets

Super useful PHP Snippets

When developing websites, apps or blogs, code snippets can be a real time saver. Today, I'm sharing super useful PHP snippets that I've collected over the past months. Enjoy!


Top 10 PHP frameworks for 2014

PHP frameworks are super useful tools when it comes to clean and structured web development, as they speed up the creation and maintenance of your PHP web applications. In this article, I have compiled (in no particular order) my 10 favorite PHP frameworks.


7 little known but super useful PHP functions

PHP have lots of built-in functions, and most developers know many of them. But a few functions are not very well known, but are super useful. In this article, I have compiled little known but really cool PHP functions.