PHP’s heredoc - good or bad? All silly titles aside, lets check out some points. (more…)
All entries of my technical and business blog.
Does your design leave an unknown size gap? navigationFiller.js!
If you’ve ever worked with a customer’s CMS pages and heard the term “Oh but I want some images underneath the links” - you need this script. Whether your using old style tables or the coolest CSS tricks, filling in space to the bottom of the page can be useful. (more…)
Convert from VMWare Player to VMWare Server
At superdev, we have a distribution of a gentoo image made with vmware workstation. This works fine in vmware player - but not the free vmware server - and I wanted to have vmware server running so I could have more than one server running on my windows laptop. Well, there are two small simple edits I had to do - and it was all good. (more…)
Useful Eclipse Plugin: Find a file name in project immediately
Unfortunately, at #superdev, there are times when the include_path in PHP is calculated. It is not always clear where to find a file. Other times there are just too many places to find the file. Because of this - and Eclipse PDT’s inability to find a file from an include or include_once statement when you ctrl click it, I needed to find a tool to find files fast. (more…)
What I believe MVC is - or MVCFDH
There are many interpretations of MVC - there are less definitions but more implementations. I want to cover what I personally do when using PHP for MVC. I call it MVCFDH. (more…)
PHP - Return results of comparison
A useful reminder: you can make use of returning the results of comparisons for is*() functions. Let me explain that further… (more…)
Using Eclipse PDT? Check out this wiki
Are you a huge fan of Eclipse PDT as I am? (more…)
Don't forget about Class Constants!
Constants can be great. They can stand for things like web services keys, integers, flags, etc. Basically, anything that you aren’t going to be changing in your script - and most likely things that don’t change much outside of the script either. However, I’ve seen people use them in the global name space far too many times. A great alternative is the class constant. Lets check out some examples: (more…)
Adobe Air Log File Watcher
One of the biggest pet peeves I have is when errors are generated on PHP files between redirects using the header() function. Especially if they’re not a fatal error, you never get to see them! Also, missing files that hit the apache logs usually are not found later until you review the logs as well. I thought: wouldn’t it be great if there was a tool that would watch these log files for me? (yes,... (more…)
Programming without E_Notice
Well, my boss at #superdev - who can only be compared to a more energetic version of the squirrel from hoodwinked asked me to start putting together some thoughts here and there on some proper PHP coding. I thought I’d start out the series with this article, Programming without E_NOTICE. (more…)