3 ms·
That, and I've noticed that the typical legacy PHP codebase is worse than the legacy codebase in other stacks.
by 27182818284 10y ago
That, and I've noticed that the typical legacy PHP codebase is worse than the legacy codebase in other stacks.
- tluyben2 10y agoIt is far worse I would say. Legacy PHP code is some of the worst code I have seen in my life. Everyone with HTML/JS knowledge could also do PHP and they did. There are many production systems (banks, insurance etc included) running old style php with html mixed with php mixed with JS. And it runs fine, but if you need to fix something that broke or had to be changed...
- deleted 10y ago[deleted]
- collyw 10y agoI have seen some real crap in Python recently. Then I was asked to move a PHP app to a new server. A quick look at the code looked terrible - string concatenations for all the SQL. (Does PHP provide some way of making this safe, or should I warn management about potential SQL injection? I don't know a lot about PHP).
- emodendroket 10y agoI think PDO is the accepted way to do it but I'm not a PHP developer.
- 27182818284 10y agoPHP absolutely has right ways to do parameterized queries. Take a glance at http://www.phptherightway.com/ http://www.phptherightway.com/ to get started