Skip to content
Tag

php

8 notes.

PHP Oct 5, 2026 3 min read

__debugInfo() does not hide anything from dd()

The card object in my Laravel package kept its number in a private property, masked it in __debugInfo(), and marked the constructor arguments #[SensitiveParameter]. dd() printed the full card number and CVN anyway, and so did var_export() and an (array) cast. The fix was to stop storing them on the object at all.

WordPress Oct 5, 2026 6 min read

wp_update_post() eats your backslashes

Two WP-CLI scripts rewrote 78 posts on this site. 69 came back exactly as planned. The other 9 lost every literal backslash they had, including the string interpolation in two Swift tutorials, and nothing reported an error. wp_update_post() expects slashed input and unslashes whatever it is given.

Android Sep 13, 2026 4 min read

Flutter Login and Signup Screen tutorial: iOS + Android + PHP 8 + Biometrics

A Flutter app for iOS and Android with signup, login, logout and Face ID or fingerprint unlock, talking to a PHP 8 API. The session token goes in the Keychain or the Android Keystore, and the forms work with password AutoFill on both platforms.

iOS Sep 13, 2026 4 min read

iOS Login and Signup Screen tutorial: SwiftUI + iOS 26 + PHP 8 + Face ID

Eleven years after the Swift 2 version, here is the login and signup tutorial again: SwiftUI screens, async/await networking, the session token in the Keychain, Face ID unlock, and a PHP 8 API that stores passwords and tokens the way they should be stored.

PHP Aug 24, 2023 1 min read

How to Use msmtp with PHP’s mail() Function to Send Email

In this guide, let's explore how to set up PHP to use msmtp, a lightweight SMTP client, as its MTA.

Coding Jun 18, 2018 1 min read

PHP Error:0607A082:digital envelope routines:EVP_CI PHER_CTX_set_key_length:invalid key length

If you are trying to use an older version of PHP to connect MYSQL over SSL, there is a good chance that you encounter the following errors: error:0607A082:digital…

PHP Jun 20, 2012 1 min read

WordPress: Fix – Parameter 1 to fdl_the_content() expected to be a reference – error

Today, i moved my blog to a new server. Everything was set up easily. But, when i pulled out a blog post, everything was working correctly, except that…

Magento Jan 17, 2011 1 min read

Magento: Check if an admin is logged in or not

If you are writing a custom module, and you want it to be accessed only by admins, then you possibly need the following code in your controller. 3360596756ace2b8f03f01_000053