You are viewing a single thread.
View all comments View context
18 points

Do you even know why you hate PHP?

permalink
report
parent
reply
8 points
2 points
*
Deleted by creator
permalink
report
parent
reply
7 points

Note that that hasn’t existed in PHP for years.

permalink
report
parent
reply
4 points
*

Blame MySQL for that. The PHP API just mirrors the MySQL C API of the same name. https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-string.html

Modern PHP doesn’t use it - any modern code uses PDO with prepared statements.

permalink
report
parent
reply
1 point
*

Never used it in over 23 years of using PHP. Also, I don’t thing that has existed anymore for the past 10 years or so?

Seriously, if we’re going to do this, can we also bitch about painful java apps from 10 years ago, or the hilariously shitty modules in node from 10 years ago? I can go on for a while, but you hopefully get the point.

permalink
report
parent
reply
1 point

The question was why do I hate it, and it was because of this. I don’t understand your confusion.

permalink
report
parent
reply
1 point
*
Deleted by creator
permalink
report
parent
reply
0 points

That is literally a decade old article with basically 1 complaint that sometimes functions are strpos() and sometimes str_len(). Anything else it’s saying is “I don’t even know how to say it”. Really now? Any of your complaints have been fixed since about a decade ago, so why don’t you give it a try?

permalink
report
parent
reply
0 points
*
Deleted by creator
permalink
report
parent
reply
5 points

That article is over a decade old. A lot of these issues aren’t relevant any more or have been fixed. Some weren’t even PHP issues, for example mysql_real_escape_string is a MySQL API (https://dev.mysql.com/doc/c-api/8.0/en/mysql-real-escape-string.html).

PHP isn’t the best language, but it’s not as bad as some people claim it to be, especially if you use a good framework like Laravel.

permalink
report
parent
reply
-6 points
*
Deleted by creator
permalink
report
parent
reply

Programmer Humor

!programmer_humor@programming.dev

Create post

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics

Community stats

  • 2.6K

    Monthly active users

  • 1.1K

    Posts

  • 39K

    Comments