Tag: php
21 posts
-
Log configuration for Laravel multi-line backtrace logs in Datadog
Thanks to this link I was able to find this snippet to help quick. I wanted to share this with the world, since it was the only result Google had for this. Here is my full YAML…
-
Automatically installing New Relic on Elastic Beanstalk
Nearly 100% automated - it looks like the only way to grab an environment variable right now is through some nasty hacks. Other than the one hard-coded thing at the moment, this…
-
Custom XHProf run IDs
XHProf is an awesome tool, but ships with a very annoying restriction out of the box. It names the run IDs in a cryptic randomized fashion (which makes sense - should be no…
-
PHP 5.4 stuff I'm jazzed about...
I'm always excited to read updates to the NEWS file for each PHP version (yes, I am that big of a PHP fan boy) - and PHP 5.4 has quite a handful of noteworthy changes. I started…
-
PHP.reboot - are you kidding me?
Something just cropped up today on HN about a "reboot of PHP" - being a PHP fanboy, I decided to go look. I've had my own ideas on what I'd change (or rather, just clean up…
-
Poor man's Global Redirect for Drupal 6.x
I was moving a customer's site from an old HTML and individual PHP page site to a friendly URL site managed by Drupal, and I only cared about intercepting URLs with those file…
-
Setting PHP INI parameters from nginx
A little known feature in PHP-FPM 5.3.3+ (since it was integrated into PHP core) is that you can actually define PHP INI parameters inside of your nginx configuration. This…
-
PHP 5.2.15 released, patch updated
PHP 5.2.15 was released today, and I've made a copy of the previous patch. It still applies without any issues (a "make test" looks good) - this is supposed to be the latest…
-
I was wrong.
I was wrong, and I'm happy to admit it. I was worried that if FPM was to ever make it in to PHP core, it would stagnate and become part of such a big machine that it would take…
-
How would I change PHP?
Anyone who knows me knows I am a PHP fanboy. I use PHP for everything - web applications, web scraping, batch scripting, if there is an itch that software can fix, I try to…
-
Cleanest configuration for the new PHP-FPM?
When examining the PHP-FPM configuration, I realized that I only tweak a few key pieces per pool, so I decided to share my approach to minimize redundancy and keep things simple…
-
The magic that is... nginx
I've told this story countless times, but I've never publicly documented it. This happened over a year ago, but I feel obligated to share it. nginx is the main reason for the…
-
Happy day! PHP-FPM included with PHP 5.3.3RC1, and WordPress 3.0
Officially in the 5.3.3RC1 distribution. Sweet! From the NEWS file: 17 Jun 2010, PHP 5.3.3 RC1 ... \- Added FastCGI Process Manager (FPM) SAPI. (Tony) ... and on an unrelated…
-
PHP-FPM and nginx upstart scripts
Upstart is becoming the de-facto standard for everything in Ubuntu, and I do enjoy it's process management and re-spawning capabilities. (Actually, before PHP-FPM I used to use…
-
Jérôme Loyet is a saint!
I'd like to announce that Jérôme Loyet stepped up this weekend and hacked up the first round of code to get dynamic process management going. Antony committed it (see below) and…
-
PHP-FPM brought in to PHP core - interesting surprise
Read it here: http://news.php.net/php.internals/46277. First off, big thanks to Antony Dovgal. I've exchanged words with him in the past about PHP-FPM (and actually other PHP…
-
Who ever said open source software was perfect?
Typically, updates on the open source packages work without a hitch. However, my upgrade last weekend on my servers from Ubuntu Hardy to Intrepid wound up creating a couple major…
-
Updates on the HTTP file upload front, part 2
Continuing from http://michaelshadle.com/2008/11/26/updates-on-the-http-file-upload-front/ ... I've been doing some research and more hacking. Code should find its way out there…
-
Quick code snippet: normalizing a URI (for friendly URLs, etc.)
When you enter the realm of "friendly URLs" "slugs" "nice names" or whatever else you call them, it can make everything a lot better looking. However, if done incorrectly, you can…
-
Updates on the HTTP file upload front
Right now I'm happy. Why's that? Because I have a neat Google Gears-based file uploader that uses hardly any code and no special server requirements or code requirements. It is…