kieranbarnes Independent PHP, WordPress & CubeCart Programmer

Detecting MIME types in PHP

Posted on January 22, 2010

Posted by Kieran

Detecting MIME types in PHP used to be hellish.

Use the mime_content_type function I hear you say. Returns the MIME content type for a file as determined by using information from the magic.mime file. No, its garbage and thankfully now depreciated.

The PHP documentation suggests we use the Fileinfo PECL extension. I wasted ten minutes of my day trying to make that work. It even comes packaged with PHP 5.3. Still doesn't work.

Managing User Shares in Windows

Posted on January 8, 2010

Posted by Kieran

So you've probably got a Users folder with directories in matching all your Windows users, so they all have a private "home" drive on your server?

Ever tried to manage permissions on them, or messed permissions up? Or managed to make your Director's files world-readable?

Mananging Exchange users and attributes from your XP desktop

Posted on January 6, 2010

Posted by Kieran

So you are lazy and don't want to waste valuable seconds of your life connecting to an Exchange server to manage a recipient. Easy, add the Exchange attributes to your local copy of Active Directory Management Tools.

Works for Exchange 2000 and 2003 and Windows XP, probably works for the rest as well.

Snows

Posted on January 6, 2010

Posted by Kieran

[nggallery id=22]

Filed under: General No Comments

Responding to a Schema Master Failure

Posted on December 30, 2009

Posted by Kieran

There is a little known FSMO role in Active Directory called Schema Master, quite simply it manages changes to your Active Directory Schema. Whilst this is down, no schema changes can be made. Chances are, you'll forget to move this role as it isn't listed in the usual Operations Masters tab.

Does anyone know why?! Anyway, if you've ever lost or moved a Domain Controller, chances are you didn't move this role.

What is the difference between ‘learnt’ and ‘learned’?

Posted on December 28, 2009

Posted by Kieran

Apparently, not much. These are alternative forms of the past tense and past participle of the verb learn. Learnt is more common in British English, and learned in American English. It's an irregular verb, and this is a part of its irregularity.

British people - 'Learnt' please.

Dixons – The last place you want to go

Posted on December 21, 2009

Posted by Kieran

Filed under: General 1 Comment

Installing and Configuring SNMP on Windows

Posted on December 11, 2009

Posted by Kieran

Do you want to monitor Windows servers or clients from Cacti or something?

load_average_graph firewall_graph

Tagged as: Continue reading

FreeTDS installation directory is not a FreeTDS installation directory

Posted on December 3, 2009

Posted by Kieran

I recently discovered an error whilst trying to (re)install an older PHP version on a client's server. My client required PHP recompiling with MS SQL support. This in turn requires FreeTDS. Installing FreeTDS is very simple, but PHP wasn't.

Tagged as: Continue reading

Ultralite D1s, not so light.

Posted on December 3, 2009

Posted by Kieran

It's the width, apparently.

[singlepic id=91 w=100 h=75 float=left] [singlepic id=92 w=100 h=75 float=left]

Page 19 of 35« First...10...1718192021...30...Last »