Archive for the ‘Programming’ Category

Compress CSS using PHP

October 9th, 2011 by Tony de Jesus 1

-+*One of the most important things to consider when creating a website is its loading time. The loading time of a website is as important as its functionality. What’s the point in having a great website if it takes too long to load? Who wants to wait for it? There are a lot of resources […]

How to Prevent SQL Injection Attacks

September 11th, 2011 by Tony de Jesus 1

-+*SQL injection is a technique that exploits a security vulnerability from the database layer of an application. This technique consists in inserting malicious code into strings that are later passed to the database management system for parsing and execution. The main goal of this attack is to expose hidden data, to override valuable one, or […]

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 […]