Warning: Expression Result Is Never Used

Published: January 17, 2012

I was recently quality control checking some code and decided to run the code analyzer in my IDE, Zend Studio, as an ancillary step in my review process.  I received a couple of warnings which stated “Expression result is never used”.  Despite the warning the PHP code worked just fine.  After further investigation I discovered why the analyzer was throwing the warning message. Read more…

Warning: Assignment In Condition

Published: January 3, 2012

I was recently writing some simple procedural scripts without using my favorite framework, Zend Framework, and was using the code analyzer in my IDE, Zend Studio, when I got an “Assignment in condition” warning.  Some of the code I had copied directly from php.net.  When I looked further into the warning I discovered the problem. Read more…

Deleting Files And Directories With PHP

Published: December 20, 2011

It’s not uncommon to be given project specifications that require the ability to dynamically delete directories and/or files. Sometimes we need to delete only one directory or file and other times we need to delete multiple directories or files. There are also times when we need to recursively delete files and folders and this takes a little more effort. Read more…

Solving The Ransom Note Problem With PHP

Published: November 1, 2011

Did you know that computer science is a subset of mathematics? I love math and that’s probably why I enjoy computer science so much. I love solving math problems, story problems, and technical riddles in general. I was recently posed with a ransom note story problem that needed to be solved with some PHP. Here’s how it went. Read more…

Tabs Versus Spaces

Published: September 20, 2011

A recent discussion with my coworkers led me to post a query to the local PHP user group, “When you set up your IDE do you prefer tabs as spaces or tabs as tabs?  Why?”  I was certain that my preference was the right way but I was surprised that the replies were evenly split. Read more…

« Previous PageNext Page »

Home · About · Domains · Hosting · Development · Portfolio · Blog · Contact · Legal Disclaimer · Privacy Policy

Copyright © 2014 · Lively Web Design