Had a very odd, very frustrating issue come up trying to get SyntaxHighlighter working on a project I’m working on. When the code to be…
Had a very odd, very frustrating issue come up trying to get SyntaxHighlighter working on a project I’m working on. When the code to be…
Quick snippet to reset all public instance variables inside a PHP class back to their original values. Can’t take credit for the code though. Found…
File this under “duh.” I typically have several projects open in NetBeans and occasionally go through and close them all to clean up a little. Turns out…
Needed a break from a larger web app I’m working on and this weekend kicked out a couple of WordPress plugins that I’ve had on…
This is one of those issues I keep coming back to. I need a way to get the path of the current JavaScript file. Something…
Needed a quick way to go through and trim leading and trailing spaces off of a string array in PHP. I’ve used array_walk to do…
It’s usually a bad idea to allow php include files to be directly accessed. My general method is to either declare a constant in the…
Needed a way to add a CSS file with JavaScript, so I went out a-Googling like I normally do. Problem is everything I found either…
Had a client getting this error when trying to send emails last week and have now spent several hours on Google trying to find a…
Needed a quick and easy way to create a bit.ly URL for another site of mine. Google came through for me. David Walsh posted a…