Category Archives: General

If I don’t know where else to put something or don’t think a post warrants a new category, it will just end up here.

Future proof PHP class constructer compatible with php4 and higher

Since there was no real viable reference to either confirm or oppose my methods, I figured this may help someone else that is trying to make sure they don’t have to change their code based on the installed PHP version.

As most of us already know, initializing a new class object in PHP4 required the constructor to have the same name as the class.

class Myclass {
 function Myclass()
 {
  echo 'Myclass initialized';
 }
}

Then __construct() was introduced in PHP5.

class Myclass {
 function __construct()
 {
  echo 'Myclass initialized';
 }
}

Now you may be thinking “I’ll just use this from now on”. I however have to write for multiple versions of PHP4/5 and must keep backwards compatibility in mind (at least for now). Here is what I use to make sure it works on all versions of PHP that currently support object-oriented programming or OOP. Anything earlier than PHP4 and I simply tell the client to find a new host, lol. Continue reading Future proof PHP class constructer compatible with php4 and higher

GoDaddy, Filezilla and getting blocked while uploading via FTP

I write code for a growing number of clients who host their sites with GoDaddy and Wild West Domains (GoDaddy’s Resller Program). My aresnal includes Photoshop & Expression Web (not a huge fan of Dreamweaver) for visual layout, Filezilla for uploading, and Notepad++ for coding (tried nppFTP plugin for FTP, that didn’t last long, too “buggy”).

Frequently I would be uploading a files after making my initial FTP connection and within a few minutes the connection would time out and I would be unable to reconnect. I figured since it was a shared hosting environment, their hardware and/or software firewall was just being very cautious. After cloning my PC’s IP address in my local router and restarting my cable modem (force renew my IP), I was able to resume work. Inevitably the issue would creep back up quickly.

Continue reading GoDaddy, Filezilla and getting blocked while uploading via FTP

Blog Spam Bots… Who Actually Lets These Comments Through?

Just a little rant from my end after going through my blog comment spam list…

I am so sick and tired of automated bots slamming my blog TRYING to get their bogus comments in the promote their sites. I mean seriously, unless you’re an idiot and just auto-approve all comments (in which case you should be flogged repeatedly and be cut off by your ISP), who would approve obvious spam comments?

For any of you that are still manually flagging WordPress comments, you can get Akismet for free for personal use (if you’re running a business blog, be honest and just pay for the software). If you look to the right side of my page, you’ll see the number of comments automatically marked as spam since I installed it on September 9th, 2010.

Unfortunately it makes me realize how unpopular my blog is since 99% of my comments are spam, lol.

XHTML Compatible Flash Object Tag for IE7 and FF2

I have been all over the web looking for a good solution that will display a flash movie in both Internet Explorer and Firefox. Most of what I have seen are bloated hacks and workarounds. If we just take a look at the XHTML standards set forth by ther W3C, the answer can be found.

Even though there are many attributes that are considered acceptable by the standards, too many designers are over-complicating the problem at hand. Here is an example of a streamlined object tag that works as expected in most modern browsers.

Continue reading XHTML Compatible Flash Object Tag for IE7 and FF2

Fractions to Decimal Conversion Table

Since I deal a lot with designing artwork in US measurements (fractions) using Illustrator and Photoshop, more often than not I have to break out a calculator to determine the decimal value of a fractional measurement.

Lets say I need to create a document that is 4 inches wide by 3 7/16 inches high. Obviously 4 inches needs no conversion, but then you have the 3 7/16 inches measurement. First you take 1, divide it by 16, then multiply the result by 7… what a pain.

So I have thrown together a quick reference guide that start at 1/64 and goes up to 63/64 with each variation in between. Bookmark or print this page to save a copy for your own personal reference. The most common fractions for my purposes are outlined in bold.

Continue reading Fractions to Decimal Conversion Table

Welcome to my own little personal piece of the web…

Go figure. I have been working with the web for over a decade and only recently registered my own name as a dot com. In retrospect, I cannot fathom why I waited this long to get it. I registered robertmullaney.com today at securepaynet.net for only $6.95. So if you are looking for an inexpensive domain registrar, there’s the link. After getting my name and setting up a hosting account (I manage my company’s dedicated servers), I decided to start a blog.

I don’t know exactly how often I will post, but most of what I put on here will be useful in one way or another to me and maybe even you. A lot of what you will find will most likely be code references or links to other sites I tend to use a lot.

My company also spends a lot of time and resources on companies whom, if we deem appropriate, may be referenced here from time-to-time as reputable vendors worth seeking out. This does not mean to contact me for a write-up on your company. If you are worth our time, I will find you and make up my own opinion 🙂