Archive for the ‘PHP’ Category

PHP-FPM tuning: Using ‘pm static’ for Max Performance

Posted on: No Comments
Let's take a very quick look at how best to set up PHP-FPM for high throughput, low latency, and a more stable use of CPU and memory. By default, most setups have PHP-FPM’s PM (process manager) string set to dynamic and there’s also the common advi...

23 Development Tools for Boosting Website Performance

Posted on: No Comments
When dealing with performance, it's hard to remember all the tools that might help you out during development. For that purpose, we've compiled a list of 23 performance tools for your reference. Some you'll have heard of, others probably not. Some have...

How to Optimize SQL Queries for Faster Sites

Posted on: No Comments
This article was originally published on the Delicious Brains blog, and is republished here with permission. You know that a fast site == happier users, improved ranking from Google, and increased conversions. Maybe you even think your WordPress site i...

How to Read Big Files with PHP (Without Killing Your Server)

Posted on: No Comments
It’s not often that we, as PHP developers, need to worry about memory management. The PHP engine does a stellar job of cleaning up after us, and the web server model of short-lived execution contexts means even the sloppiest code has no long-lasting ...

Your First PHP Code

Posted on: No Comments
The following is a short extract from our new book, PHP & MySQL: Novice to Ninja, 6th Edition, written by Tom Butler and Kevin Yank. It's the ultimate beginner's guide to PHP. SitePoint Premium members get access with their membership, or you can ...

How to Optimize MySQL: Indexes, Slow Queries, Configuration

Posted on: No Comments
MySQL is still the world's most popular relational database, and yet, it's still the most unoptimized - many people leave it at default values, not bothering to investigate further. In this article, we'll look at some MySQL optimization tips we've cove...

Git and WordPress: How to Auto-Update Posts with Pull Requests

Posted on: No Comments
At Bitfalls.com, we also use WordPress for now, and use the same peer review approach for content as we do at SitePoint. We decided to build a tool which automatically pulls content from merged pull requests into articles, giving us the ability to fix...

Symfony Flex: Paving the Path to a Faster, Better Symfony

Posted on: No Comments
Symfony Flex is a modern replacement for the Symfony Installer, and not the name of the next Symfony version. As the intro text says: Internally, Symfony Flex is a Composer plugin that modifies the behavior of the require and update commands. When ins...