Posts Tagged with "good practices"

Securing a directory with 777 or 775 permissions

Posted by Stanislav Furman on July 6, 2014
Read how to secure a directory with 777 or 775 permissions

Responsive website Vs standalone mobile version

Posted by Stanislav Furman on June 16, 2014
Let's try to compare responsive website design and standalone mobile website. What is better?

Important things you must know before register a domain name

Posted by Stanislav Furman on May 16, 2014
10 important things you should know before you register a domain name with a registrar

Backward version compatibility in PHP web application

Posted by Stanislav Furman on February 17, 2014
How to handle backward PHP version compatibility in your web application

Loose comparison in PHP. Example of breakable functionality.

Posted by Stanislav Furman on September 12, 2013
Example of breakable functionality using the loose comparison in PHP

Cookieless cookies and user authentication without cookies and JavaScript

Posted by Stanislav Furman on September 9, 2013
Cookieless cookies and user authentication without cookies and JavaScript

How to protect against SQL injection, and why SQL injection is dangerous

Posted by Stanislav Furman on May 14, 2013

I am quite sure that most of web developers know what the SQL injection is, and nowdays it seems that even junior developers know basics on how to protect web applications against this type of hacker attack. However, I often see web developers underestimate the level of potential threat. Some web developers think: "We are too small to be interesting for hackers", but they forget that security wholes in their applications can be used to attack other resources, systems and users.

In this post I am not going to show how to attack web applications using an SQL injection, but I'd like to show why SQL injection is dangerous and also how to protect against SQL injection.

Continue reading

How to trim array elements in PHP in one shot

Posted by Stanislav Furman on April 17, 2013
Remove all leading and trailing white spaces in all PHP array values.

MySQL. How to insert a row or update if exists in MySQL.

Posted by Stanislav Furman on February 25, 2013
Insert a row into DB, or update row on duplicated key in MySQL.

How to interview a programmer. Thoughts about hiring process.

Posted by Stanislav Furman on August 26, 2012
A few tips about how to interview and hire a programmer based on own experience.