Reducing PHP's CPU usage by nearly 40% by upgrading from Ubuntu 20.04 to 22.04 (ohdear.app)
We observed an almost 40% reduction of CPU usage in our PHP servers by upgrading from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS.
We observed an almost 40% reduction of CPU usage in our PHP servers by upgrading from Ubuntu 20.04 LTS to Ubuntu 22.04 LTS.
Hi! In the realm of software development, creating complex objects often feels like trying to solve a...
In the landscape of software testing, the choice between a do-it-yourself (DIY) approach to mocking and utilizing mocking frameworks is a pivotal decision for programmers. While mocking is indispensable for code reliability, its overuse or incorrect implementation can introduce complexities and fragilities within test suites....
Enable strict typing mode in PHP with declare(strict_types=1). Understand its implications with code examples.
As a PHP developer, the tools you choose can make all the difference in your workflow and...
For many developers, PHP is synonymous with web development. But what if you could leverage your...
When you are deploying code to a server and not with containers then it is critical to know how to properly restart Opcache. Why? Opcache never throws old files out of the cache. Therefore, if a new version is deployed in a completely new directory, all files from the old version will remain in the [...]
PHP 8.4 will be released in November 2024, but the list of new features and deprecated features is...
PHP popularity has dropped dramatically, coinciding with WordPress becoming "JavaScript-first" according to its co-creator Matt Mullenweg.
Single Page Applications, AJAX loading of content… there are legitimate reasons to use these technologies. That said I am constantly amazed…
Always with the goal of improving my way of writing code, I discovered a few years ago Adam Wathan...
PHP is one of the most used programming languages. How has it remained on top and what are some of the pros and cons for developers?
Like many worldwide, the recent ownCloud vulnerabilities got us worried as security professionals and tool authors. According to this blog, the vulnerability was caused by a test file in the vendor directory.
PHP 8.3 has already been released a few months back and it’s time to look at what’s coming in PHP 8.4.
In a recent shift of maintainership, Juliette Reinders Folmer has taken the helm of the PHP_CodeSniffer project, injecting fresh energy and vision into its development. This transition marks a pivotal moment, emphasizing the importance of community support, particularly from corporate entities. As a vital tool for maintaining...
PHP 8.3 is a major update of the PHP language. It contains many new features, such as explicit typing of class constants, deep-cloning of readonly properties and additions to the randomness functionality. As always it also includes performance improvements, bug fixes, and general cleanup.
In this tutorial, you'll learn how to upload and store images in an SQLite database with PHP and its Imagick extension, by building a simplistic, RESTFul, API
As the digital landscape continues to evolve, PHP, one of the most popular programming languages for web development, stays ahead of the curve with its latest version — PHP 8.2.
Kbin is a decentralized content aggregator and microblogging platform running on the Fediverse network (it's what you're likely reading this on)
Have you ever wondered how a language sets about adding new features, or deciding what changes from...
In these times, the benefits of writing unit tests are huge. I think that most of the recently started projects contain any unit tests. In enterprise applications with a lot of business logic, unit tests are the most important tests, because they are fast and can us instantly assure that our implementation is correct.
When creating applications with PHP, Exceptions play a vital role in handling errors and irregularities that arise during the application lifecycle. We are going to see how to use Custom Exceptions to improve our applications.
How to fix the SQLSTATE[HY000] [1524] Plugin 'mysql_native_password' is not loaded errors caused in MySQL 8.4 no longer enabling the mysql_native_password plugin by default.
Features, performance upgrades, and deprecations in PHP 8.4