Skip to content

The Code Cave

Menu
  • PHP
  • WordPress
  • MySQL
  • LINUX
    • Bash
  • Plugins
    • SCuD – The ShortCode Disabler
    • Smart Passworded Pages Plugin
    • Per Page Sidebars
    • Word Filter Plus
    • Spam Catharsis
    • Donate
  • Scripts
    • Google Talk Notifications
  • Random thoughts

Simple $wpdb error handling

By Brian April 25, 2011 Random thoughts 7 Comments
For my own copy and paste pleasures, here are some wpdb error handling examples. It will grow over time: A very simple non-failing method for in a function: if ($wpdb->query($query) === FALSE) { return FALSE; } else { return $wpdb->get_results($query); }...
[Continue reading...]

Story line of the Amazon EC2 and RDS failure and recovery

By Brian April 23, 2011 Random thoughts 1 Comment
I wanted to read the timeline of the Amazon “Networking Event”.  So I’ve taken the logs of the EC2 and RDS status updates and put them together for a post. If you want to learn about how to make a more...
[Continue reading...]

HOW TO: Installing MySQL on RedHat/CentOS/Amazon Linux in 5 easy steps.

By Brian March 30, 2011 MySQL 0 Comments
This seems like it should be a really complicated tasks, but once you have done a few it sinks in that this is really simple…   Just run each of the following 5 steps as root.  Answer any questions with the...
[Continue reading...]

HOW TO: How do you redirect all https traffic to http?

By Brian March 30, 2011 Random thoughts 3 Comments
There are LOTS of ways to do this.   This is what I do so that I can use the same code in any site’s .htaccess RewriteEngine On RewriteBase / Options +FollowSymlinks RewriteCond %{HTTPS} =on RewriteRule ^(.*)$ http://%{SERVER_NAME}/$1 [R=301,L]   I...
[Continue reading...]

HOW TO: Determine which flavor or version of Linux is installed

By Brian March 29, 2011 LINUX 3 Comments
If you are working with a Linux or Unix server, you may not even know which operating system release is on the server or even if it is a 32 bit or 64 bit machine. How do you even tell if...
[Continue reading...]

HOW TO: Take a quick glance at errors from a project.

By Brian March 24, 2011 Bash, PHP 0 Comments
PHP records all errors to a file named error_log I needed to look at the status of a project on two servers to see what errors were being thrown. This command line shows the top 20 errors and how often they...
[Continue reading...]

HOW TO: Find the IP address of a domain from the local server before propagation

By Brian February 4, 2011 Bash 0 Comments
Have you ever wanted to know the ip address assigned to a domain according to your local server? I had this problem. I needed to get an IP address of a domain before the domain propagated. I was writing a custom...
[Continue reading...]

Getting Started With BackPress

By Brian January 30, 2011 Random thoughts 3 Comments
This summer I took the opportunity to write my first BackPress application.  It was an educational experience that came with a number of surprises. I thought I would share my experience with you, along with some tips to get you out...
[Continue reading...]

How do you set the local timezone on a CentOS Linux server?

By Brian January 15, 2011 LINUX 0 Comments
Though installations will vary, this is usually done via a file named timezone in the /etc directory. By default, there’s probably already a file there set to the utc timezone. So if you do a cat /etc/timezone you will see TZif2UTCTZif2UTC...
[Continue reading...]

HOW TO: Dump or Backup all MySQL databases to separate files

By Brian December 11, 2010 Bash, MySQL 2 Comments
I needed to transfer about 40 databases from a new clients server over to my hosting platform. When doing a couple database exports, I might use PHPMyAdmin to do the export. Heck, it’s convenient because I usually want to look around...
[Continue reading...]

Posts navigation

1 2 3 4 5 6 … 41

Recently added to the Cave

  • Helpful Gutenberg Articles
  • Count Down Closing Timer and dealing with DST in JavaScript
  • Every chmod permission converted from numeric & displayed in ls style
  • How to create a WordPress compatible slug in MySQL
  • Help Me with Discussing Banner Sizes for Responsive Sites
  • How do you split a text field/textarea by line breaks?
  • WordPress and NotePad++
  • How to find Joomla WordPress or Drupal version from Linux CLI
  • What does “Is this ok [y/d/N]:” mean?
  • Advanced Google Search Operators

Recent Posts

  • Helpful Gutenberg Articles
  • Count Down Closing Timer and dealing with DST in JavaScript
  • Every chmod permission converted from numeric & displayed in ls style
  • How to create a WordPress compatible slug in MySQL
  • Help Me with Discussing Banner Sizes for Responsive Sites
  • How do you split a text field/textarea by line breaks?
  • WordPress and NotePad++
  • How to find Joomla WordPress or Drupal version from Linux CLI
  • What does “Is this ok [y/d/N]:” mean?
  • Advanced Google Search Operators

Meta

  • Log in
  • Entries feed
  • Comments feed
  • WordPress.org

Archives

  • January 2019
  • December 2017
  • March 2016
  • December 2015
  • September 2015
  • June 2015
  • November 2014
  • September 2014
  • August 2014
  • January 2014
  • October 2013
  • February 2013
  • May 2012
  • April 2012
  • February 2012
  • January 2012
  • October 2011
  • June 2011
  • April 2011
  • March 2011
  • February 2011
  • January 2011
  • December 2010
  • November 2010
  • October 2010
  • September 2010
  • August 2010
  • June 2010
  • February 2010
  • October 2009
  • September 2009
  • August 2009
  • July 2009
  • June 2009
  • May 2009
  • March 2009
  • February 2009
  • January 2009
  • December 2008
  • November 2008
  • August 2008
  • July 2008
  • June 2008
  • May 2008
  • March 2008
  • February 2008
  • January 2008
  • November 2007
  • October 2007
  • August 2007
  • July 2007
  • June 2007
  • May 2007
  • April 2007
  • March 2007
  • February 2007
  • January 2007
  • December 2006
  • November 2006
  • October 2006
  • September 2006
  • August 2006
  • July 2006
  • June 2006
  • May 2006
  • April 2006
  • March 2006
  • February 2006
The Code Cave Copyright © 2025.
Back to Top ↑