Posts Tagged ‘programming’

WordPress: How to Fix Conditional Tags Problem

August 9th, 2011 by Tony de Jesus 0

*+-In WordPress you can use Conditional Tags in your Template files in order to change the way of displaying content and what content is displayed on a particular page. A very common example is if you want to display a snippet of text but only on the main page of your blog, you can use […]

Choosing a Good and Strong Password

June 12th, 2011 by Tony de Jesus 0

*+-Your password is what proves to the system that you are who you say you are. It’s like a key that opens the door to your account, computer, etc. and exposes all your data. You can’t login into your email, twitter, facebook or similar account without using your password. Until we can do retina scans […]

PHP Comparison Operators: Equal vs Identical

May 29th, 2011 by Tony de Jesus 0

*+-One of the most common mistakes of PHP developers (especially at the beginning) is the tendency to confuse the equal operator (==) with the identical operator (===). Frequently, they decide to use only the equal operator and think that it will work in all cases, until the truth is revealed: it doesn’t.

PHP Shorthand: Using Ternary Operators (?:) instead of If-Else Statements

May 22nd, 2011 by Tony de Jesus 2

*+-All programmers need to agree with me when I say: One of the most used and most important parts of our code are the if-else statements. No matter what the programming language, we can’t avoid the comparisons. We need to check if a variable is set or if it stores a specific value. if-else statements […]

How to check any website status using PHP

May 15th, 2011 by Tony de Jesus 4

*+-Sometimes we need a tool able to monitor the activity and status of a specific website. For example, in this blog, I have the Sites of the Week series that displays the best websites that I’ve found in the week. I don’t want my readers to click on one of those links and get an […]