News for hackers. Stuff that matters.
Re:Learn PHP the Right Way by archerx on Monday August 05, 2024 @08:10AM (#41160543)
Wow using a 12 year old obsolete article to prove a point, nice.

Lets be honest here, the modern web is an over engineered fractal of bad design.

Re:Learn PHP the Right Way by LoganDark on Monday August 05, 2024 @08:15AM (#41160578)
That article is not obsolete just because it's 12 years old. Honestly, in PHP's case, there's not much you can say about it 12 years ago that isn't still true.
Re:Learn PHP the Right Way by throwaway03254 on Monday August 05, 2024 @08:21AM (#41160621)
12 years ago (2012), the latest PHP version was 5.4. The current version is 8.4.

The language has made major changes to both syntax and functionality.

Re:Learn PHP the Right Way by LoganDark on Monday August 05, 2024 @08:37AM (#41160767)
Eh. On its own that means nothing, the other commenters make better points.
Re:Learn PHP the Right Way by throwaway03254 on Monday August 05, 2024 @02:26PM (#41163931)
I'm not going to bother explaining something that can be found easily on Google.
Re:Learn PHP the Right Way by AegirLeet on Monday August 05, 2024 @08:21AM (#41160628)
Almost nothing in that article is true for modern versions of PHP. It's definitely obsolete.
Re:Learn PHP the Right Way by logifail on Monday August 05, 2024 @08:22AM (#41160636)
> That article is not obsolete just because it's 12 years old. Honestly, in PHP's case, there's not much you can say about it 12 years ago that isn't still true.

The very first specific thing mentioned in the article is "mysql_real_escape_string".

The mysql_ extension was deprecated in PHP 5.5.0 (released on 20 June 2013) and fully removed in PHP 7.0.0 (released on 3 December 2015).

Re:Learn PHP the Right Way by hu3 on Monday August 05, 2024 @08:25AM (#41160665)
It's obsolete because most of it is no longer correct.

I'm not going to bother rebuting all of it, those who really want to educate themselves can use Algolia search for the link and find great comments.

But from a quick glance of the start, the article cites "mysql_real_escape_string()". That function has been deprecated 11 years ago. And removed 8 years ago.

https://www.php.net/manual/en/function.mysql-real-escape-str...

Re:Learn PHP the Right Way by Joker_vD on Monday August 05, 2024 @08:37AM (#41160772)
I've searched Algolia; the comments in the original 2012 thread are mostly "yeah, it's roughly accurate and PHP sucks", the ones from 2014 and onwards are mostly "it's all lies, PHP has come long way and fixed lots of things" but with no specific examples except for that "mysql_real_escape_string()". Surely there were other improvements that could merit a mention?