Category Archives: Web & Software Development

Check if a Javascript function exists, if so call it.

I had a little trouble searching for this on Google. So here’s a little Javascript gem for you. If you want to call a Javascript function, but only if it exists, here’s one way you can do that. function ifFnExistsCallIt(fnName) … Continue reading

Posted in Web & Software Development | Tagged | Leave a comment

How to save a string to S3 using PHP

I recently used Elance to commission the creation of a PHP function that takes a string as input, creates a text file, saves it to S3, and finally returns the URL to the text file. I’m using this function to create a … Continue reading

Posted in Web & Software Development | 1 Comment

Tweet Button Shows 0 Fix

Twitter has a fancy widget/button called the Tweet Button that allows your readers to click a button to tweet about your webpage. It includes a count of how many people have tweeted about your page, similar to Facebook’s “like” button. … Continue reading

Posted in Web & Software Development | Tagged | 1 Comment

How to reference Smarty variables inside {php} tags

I gotta’ be honest, I’ve never used the Smarty Template Engine before in my life. I’m currently working on a project to integrate WordPress and JobberBase so they use the same WordPress theme. JobberBase uses Smarty, so I’m getting a crash course. … Continue reading

Posted in Web & Software Development | Tagged , , , | 2 Comments

Downgrade PHP 5.3 to 5.2

Like many others, I recently upgraded my Production server to PHP 5.3. I’m not quite sure of the reason anymore. I think I was trying to integrate a PHP profiler that required something in 5.3. Whatever my original reason, after … Continue reading

Posted in IT & Administration, Web & Software Development | Tagged | 13 Comments