Archive | November, 2009

Fixing /tmp sillyness in WordPress

Something that has annoyed me for quite some time with WordPress is its inability to figure out which temporary path to use when installing new themes and plugins, as well as when you upgrade WordPress itself.

On most servers where I use WordPress, the “global temporary” /tmp is *not* available, and this is a *good* thing. Unfortunately, it causes some problems for WordPress since the default tits-up action is to default to /tmp when all else fails. That in itself isn’t that big of a problem, but IMHO, there’s a more appropriate way of figuring out where to put temporary files: use the configured UPLOAD path. And when I say the “configured UPLOAD path”, I mean the one PHP thinks it should be using.

Why is this a good idea? Well.. a) the system administrator has configured it like it is configured for a reason, b) there’s a fair chance WordPress *can* actually *write* to this directory, and c) it makes WordPress so much more flexible in multi-site environments.

Fortunately, there is a way to get WordPress to habla.

Find and edit your wp-config.php file in the WordPress root. Somewhere (it doesn’t matter where, just as long as you put it inside the , put this line:

define (‘WP_TEMP_DIR’, ini_get (‘upload_tmp_dir’));

Save the file and Bob’s your uncle.

0

In my shadows

I cannot tell you what awaits in the
shadows of my mind, because you would
not understand.

Few people have been in my shadows.

But you have reached so far into my
soul that I am certain that you will
see what lies beyond.

I’m not asking you to comprehend what
you see, nor am I asking you to listen
to me when I describe what you see.

You have to feel it, because if you’re
not feeling it, then you’re not seeing
it.

I am grateful, without shame or debt.

My pain is without end, but it is not
all dark because my happiness is also
without end. Some people call it
bipolar, I call it life; because I do
not know another life.

But then again, those people have never
lived my life.

I cannot say it in a less complicated way:

I love you.
I love you.
I love you.

“In my shadows”, joho 2009-11-08

0

Powered by WordPress. Designed by WooThemes