Month: September 2008

When to use self over $this?

In PHP 5, what is the difference between using self and $this? When is each appropriate? Source: Stackoverflow [...]

What’s the best method for sanitizing user input with PHP?

Is there a catchall function somewhere that works well for sanitizing user input for SQL injection and XSS attacks, while still allowing certain types of html [...]

How can I prevent SQL-injection in PHP?

If user input is inserted without modification into an SQL query, then the application becomes vulnerable to SQL injection, like in the following [...]

Amy Sedaris

"My mom used to say that Greek Easter was later because then you get stuff cheaper." Source: Brainy [...]