←back to thread

PHP 8.5

(stitcher.io)
202 points brentroose | 1 comments | | HN request time: 0.201s | source
Show context
yupyupyups ◴[] No.45992465[source]
Is PHP still unhelpful when it comes to writing secure code?

I remember when escaping SQL input data was "the correct way" to use your mysql database. Parametrization? Nah, just use mysql_escape_string or whatever it was called.

replies(4): >>45992563 #>>45992566 #>>45992581 #>>45992594 #
1. amiga-workbench ◴[] No.45992594[source]
You use PDO and prepared statements. Although realistically, you are going to be using a framework and some kind of Active Record pattern.