Getting Started With PHP_CodeSniffer

Published: May 1, 2012

PHP_CodeSniffer is a PHP5 script that tokenises PHP, JavaScript and CSS files to detect violations of a defined coding standard. It is an essential development tool that ensures your code remains clean and consistent. It can also help prevent some common semantic errors made by developers.  See PHP_CodeSniffer.  Let’s get started with PHP_CodeSniffer. Read more…

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…

« Previous PageNext Page »

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

Copyright © 2014 · Lively Web Design