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.
You really shouldn’t be using STSADM anymore. PowerShell is a far more robust and flexible replacement. But if you just must execute your beloved STSADM commands, you can do so from within PowerShell directly. Here’s how.
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.
Before updating a SharePoint solution you inherited from another developer, you may first want to download and save a copy of the currently deployed WSP solution file in SharePoint central admin. Here’s how to do that with 3 lines of PowerShell code.
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.