Tagged: php

WordPress Plugin: wp-server-migration

This plugin is designed to make managing migration from dev->staging->production easier for WordPress and WordPress Multisite. Allows for WP_HOME and WP_SITEURL to be set in WordPress Multisite, and for URLs in content and meta...

Moving WordPress’ /wp-content/uploads out of your DocumentRoot

Why might you want to move your /wp-content/uploads folder out of your DocumentRoot? In my case, I use DropBox to sync files between my desktop and my laptop for doing development – no matter...

Writing to the PHP error_log with var_dump & print_r

Writing objects to the PHP error log using error_log() can be useful, but it isn’t allowed – you can only write strings there. What to do? Well, luckily there are options for both print_r()...

WP_HOME and WP_SITEURL for WordPress Multisite Development & Migration

I needed to be able to copy the wp_options table(s) to my development environment as they contain configurations that are needed. To overcome the issue of not being able to set the WP_SITEURL and...

Buddypress + WordPress Search

Buddypress steals the WordPress /search slug which means you are limited to ugly permalinks for search. Going to /search would just redirect to the home page with Buddypress installed. After searching the Buddypress code...

Write a Simple Caching Proxy Server with PHP and Memcached

I recently had an issue where a plugin was trying to download remote data and then cache it to a directory, but the problem was that the directory wasn’t writable and the 500kb file...