Systems | Development | Analytics | API | Testing

PHP

A story of Lazy Loading File System Operations for better dev system performance

In this blog post I want to share a story of a performance bottleneck using the filesystem that we experienced in our development setup. In the Tideways backend, we have a simple homegrown database migration tool that scans a directory for.sql files and applies them if not already done. It is a very old piece of code that I used since before the times of doctrine/migrations. It is much simpler but works for us.

How to Fix E_WARNING: strpos(): Empty needle in PHP

The PHP strpos($haystack, $needle, $offset) function is used to find the numeric position of the first occurrence of a substring in a string. The haystack parameter is the string to search in, and needle is the substring being searched for. The E_WARNING: strpos(): Empty needle warning is issued if the needle substring is empty when calling the strpos() function.

Tools to Check PHP 8 Compatibility & Performance Tips

With the new PHP 8.2 set to roll out on November 24, 2022, what are your thoughts on the upgrades and the newest features? Have you done a compatibility check yet? if not, here are the right tools for you! PHP stands for the recursive acronym Hypertext Processor, created by the Danish-Canadian programmer Rasmus Lerdorf in 1993 until Suraski and Gutmens started to take up the basic code and rewrite the core PHP, resulting in the Zend engine.