Warning: Cannot modify header information - headers already sent by (output started at /homepages/25/d88497359/htdocs/sites/drzdigital/index.php:3) in /homepages/25/d88497359/htdocs/sites/drzdigital/wp-content/plugins/wp-super-cache/wp-cache-phase2.php on line 62
php | DRZ Digital, LLC
Simplifying Business Workflows

Posts Tagged ‘php’


Upgrading Apache and PHP on WAMP

Upgrading Apache 2.2.x to 2.2.23 and PHP from 5.2 to 5.4 on Windows Server 2003+ (Win32)

I recently decided to upgrade both my Apache and PHP installs so I can take advantage of some of the new features of PHP 5.4. What I assumed would be a simple, well documented update, turned into hours of frustration and research.  In the end, I was successfully able to perform the upgrade and hopefully this quick guide will save others from the same frustrating research.

Before beginning this upgrade, I assume you have the following installed and working: Windows Server 2003 (or later) x86, Apache 2.2.x, PHP 5.2.x

Step  1
Be sure that you have downloaded and installed the Visual C++ 2010 and Visual C++ 2008 Redistributable Package x86

Step 2
Download VC9 version of Apache 2.2.2x – Apache 2.2.2x Win32 – Same as the Win32 VC10, but build with VC9 x86
[Apache VC9 Binary] httpd-2.2.25-win32-ssl_0.9.8-VC9.zip from http://www.apachelounge.com/download/additional/

Step 3
Extract the Apache zip into a temporary folder and create a backup of your current Apache install.

Step 4
Stop the Apache service and replace the following directories in your Apache path with the ones from the extracted zip file:

Step 5
Start the Apache service and ensure that it works.

Step 6
Download the VC9 x86 Thread Safe version of PHP 5.4 from: http://windows.php.net/download

Step 7
Extract PHP into a different folder than the current version of PHP you are running. I used E:/PHP5.4/

Step 8
Make whatever changes you need to the included php.ini-production file and rename it to php.ini

Step 9
Change your Apache conf file to reflect the new PHP installation.

My settings:

Step 10
Restart the Apache service and you should be good to go.

Step 11 (Optional – If you plan on using Composer or PHP CLI)
To access the new version of PHP from the command prompt you must update the Windows PATH entry.

  • Go to Control Panel and open the System icon (Start -> Settings -> Control Panel -> System, or just Start -> Control Panel -> System for Windows XP/2003)
  • Go to the Advanced tab
  • Click on the ‘Environment Variables’ button
  • Look into the ‘System Variables’ pane
  • Find the Path entry (you may need to scroll to find it)
  • Double click on the Path entry
  • Find the PHP directory and modify it to your new installation directory. (eg. E:\PHP5.4)
  • Press OK and restart your computer
Posted on January 31st, 2013 by Dan Z in Development No Comments
Tags: , , , ,

About the Author Advanced WordPress Plugin

I’ve released my new WordPress plugin: About the Author Advanced.  This plugin creates a sidebar widget which displays information about the author of a page or post.  It also adds several additional contact options for all users.

You can see more here: http://drzdigital.com/wordpress-plugins/about-the-author-advanced/

Posted on July 27th, 2012 by Dan Z in Wordpress No Comments
Tags: , , ,

Custom logo and link for the WordPress login page

If you would like to easily change the logo on the login page for WordPress you can add a few simple lines of code to your functions.php file.

To change the logo:

To change the URL that the logo links to:


Posted on July 18th, 2012 by Dan Z in Development, Wordpress No Comments
Tags: , , ,

Setting a default display name in WordPress

I recently had to add a group of new users to a WordPress based website and it was frustrating that you have to individually change each user’s display name or else it defaults to their username. 

Below is simple block of code that you can copy and paste into your functions.php file which will default the display name to “Firstname Lastname.”

Posted on July 9th, 2012 by Dan Z in Development, Wordpress 1 Comment
Tags: ,