This guide will show you how to programmatically perform common service management tasks from PHP. It focuses on the ServiceManagementRestProxy class in the official Microsoft Azure SDK for PHP.
PHP code snippet to test whether a user has a valid Gravatar or not. The only input needed is the user’s email address. It uses MD5 hashing and URI response headers.
As of PHP 7.2 create_function() has been deprecated because of its usage of eval() – which in itself is a security hole. Even though applications that use create_function() may still work, you should replace it with an anonymous function instead.
Quick PHP code snippet to extract an Amazon product ASIN code or ISBN number from any Amazon US product URL. Works via a regular expression and the “preg_match” function.
AJAX has become THE way to build user friendly and dynamic websites. With AJAX, you can update the contents of a page without doing a full page reload. Most websites need this behavior. Read this post to learn how to implement AJAX on WordPress sites.
Code snippets to restrict authors and contributors of multi-author WordPress websites. The first piece of code prevents them from seeing content assigned to other users. The second ensures that users can only see post counts of their own content.