Deleting Files And Directories With PHP
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
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
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…
Highlighting Source Code In WordPress Blog
One of the main reasons I enjoy blogging is to share some of the source code that I’ve recently used in hopes that someone else might find it useful. However, WordPress.com doesn’t allow you to use potentially dangerous code on your blog. Likewise, posting syntax-highlighted code to your site without having to escape the code or anything can be a bit tricky. Fortunately, there is a WordPress plugin to help us post and highlight our source code which makes our code easily readable. Read more…
RSS Posts