PHP
Increase WordPress’ memory limit WP_MEMORY_LIMIT properly in wp-config.php
How to increase the memory limit for your WordPress website, the right way. In this post I show you a correct way of setting WordPress WP_MEMORY_LIMIT and PHP memory_limit settings to improve Wordpress speed & performance.
Remove Jetpack email sharing service
Remove Jetpack email sharing service using WordPress plugin or theme functions.php file. It's often abused by spammers
Clear PHP opcode caches before WordPress Updates: ease the updating process
WordPress core-, plugin- and theme updates sometimes fail because of enabled opcode caches in PHP. Popular PHP opcode caches are OPcache, WinCache and APC. This little WordPress Must Use Plugin tries to flush opcode caches. Making your live a bit easier when updating WordPress Core, Plugins and Themes.
Optimize(d) WordPress hosting (9+ practical tips)
9+ Practical tips to optimize WordPress hosting - or for any other PHP web application for that matter. Learn optimizing your WordPress hosting
“How we broke PHP, hacked Pornhub and earned $20,000”
It all started by auditing Pornhub, then PHP and ended in breaking both… We have gained remote code execution on pornhub.com and have earned a $20,000 bug bounty on Hackerone. We have found two use-after-free vulnerabilities in PHP's garbage collection algorithm. Those vulnerabilities were remotely exploitable over PHP's unserialize function.
SSL in WordPress: how to move WordPress to HTTPS? The definitive guide
Move WordPress to HTTPS correctly. Learn the Site Health switch, database search and replace, IIS/Apache redirects, HSTS hardening, and OpenSSL verification.
How to install Microsoft’s SQL Server Driver for PHP
This post walks you through the steps necessary to install the SQL Server driver and SQLSRV extension for PHP 7+, on Windows Server IIS of course.
Minify WP-Super-Cache HTML cache files: WPSCMin a WP-Super-Cache plugin
The WordPress WP-Super-Cache cache plugin doesn't minify HTML cache files, which I find a disadvantage. Knowing minify libraries, I went looking for an existing solution (why reinvent the wheel?), and found one: WPSCMin. Read on ...
Always_populate_raw_post_data setting in PHP 5.6 & Magento 2.0
How to fix upgrades to Magento 2.0 in PHP 5.6 and higher: PHP 7+.
Generate pseudorandom passwords with OpenSSL
OpenSSL comes in handy when you need to generate passwords or random strings. For example for system accounts and services. In this short post I'll give you a quick example on how to generate random passwords with OpenSSL in Linux (Bash), Windows and PHP.
Optimize PHP’s OPcache configuration
Optimize PHP's OPcache configuration and make OPcache perform even better. After configuring and optimizing PHP's realpath_cache_size, the OPcache cache mechanism is the next step to fine-tune. With just a few tweaks you tune OPcache to perform much better
Use authenticated SMTP over TLS encrypted connections, in PHP, ASP and ASP.NET
Send mail over authenticated SMTP using TLS, in PHP, ASP and ASP.NET. Send email securely from your website. Ready to use examples!
PHP 5.6 default_charset change may break HTML output
A change in PHP's default_charset php.ini setting causes HTML output to break if you try to set a different charset in your HTML head. It also might break functions like htmlentities() and htmlspecialchars().
How to set a good PHP realpath_cache_size
Learn how to optimize PHP performance by checking and setting PHP realpath_cache_size. The realpath_cache_size size represents the total number of bytes in the path strings stored, plus the size of the data associated with the cache entry
Display Commas in WordPress tags
How to display commas in WordPress tags? And why have commas in WP taxonomies?
Check website availability with PHP and cURL
A useful PHP script to check if your website is up and online available. It uses PHP and cURL. This script comes in handy because website uptime and availability is important, and you want your website to be always online available.
Exploit PHP’s mail() to get remote code execution
Exploit PHP's mail() function for remote code execution. Apparently, if you are able to control the 5th parameter of the mail() function ($options), you have the opportunity to execute arbitrary commands.
Custom PHP version on IIS Express and WebMatrix 3
Outdated but fun: PHP 7 with OPcache in IIS Express for Microsoft WebMatrix 3: create your DevOps with Microsoft WebMatrix and IIS Express
Send authenticated SMTP email over TLS from WordPress
Learn how to override wp-mail() and send secure email using authenticated SMTP and StartTLS from WordPress.