I
I
Ilya Pavlov2015-10-24 22:08:59
PHP
Ilya Pavlov, 2015-10-24 22:08:59

PHP and MySQL. Where we are going?

Increasingly, I began to notice that on various sites mentioning PHP functions for working with MySql, it is said that they are becoming obsolete and will soon be "removed" altogether. What is that supposed to mean? In short, the question is: where to move? What to use? What are the "new" methods now? Maybe there are smart / light / convenient / relevant new libraries?

Answer the question

In order to leave comments, you need to log in

6 answer(s)
N
Nazar Mokrinsky, 2015-10-24
@PiCoderman

The mysql_* functions are removed (already removed in PHP 7).
Replacements include mysqli_* functions with similar syntax, the MySQLi class, and PDO.
No one is going anywhere, just the tools for working with the database are changing (at the same time, mysqli_* is very similar to its outdated counterparts). MySQL as a database is not going anywhere.

P
pantsarny, 2015-10-24
@pantsarny

php.net/manual/en/book.pdo.php
On top of it, their own abstractions are made, like DAO or Active Record.

Z
zooks, 2015-10-24
@zooks

Instead of PHP, it is now fashionable to use Python, and instead of MySQL - PostgreSQL.
But of course they are not outdated. This is the mysql module in PHP.
php.net/manual/ru/function.mysql-connect.php

J
JihadTV, 2015-10-24
@JihadTV

phpfaq.ru/pdo
It is well described here. As far as I understand, its creator used to be on a toaster.

I
Ilya Beloborodov, 2015-10-25
@kowap

Pdo, Dao.

I
index0h, 2015-10-24
@index0h

Over time, any technology will become obsolete, it's a fact. But PHP and MySQL are now vigorous and full of energy, PHP7 will be released - the first one will also be doped)).
Where are they removed from, if not a secret?

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question