Re: mysql_connect() method will be remove in all PHP version in the future?
| From: | Derick Rethans | Date: | Fri, 08 Dec 2017 12:15:20 +0000 |
| Subject: | Re: mysql_connect() method will be remove in all PHP version in the future? | ||
| References: | 1 | Groups: | php.webmaster |
| Request: | Send a blank email to php-webmaster+get-26632@lists.php.net to get a copy of this message | ||
On Fri, 8 Dec 2017, Dil Nawaz wrote:
> Actually i am use PHP v5.6 and I face always an warning message
> "Deprecated: mysql_connect(): The mysql extension is deprecated and will be
> removed in the future: use mysqli or PDO".
> I want to know that is it true?
Yes.
> If it is true then when it will remove?
It has been removed in PHP 7.0 and later, as per the following RFC:
https://wiki.php.net/rfc/remove_deprecated_functionality_in_php7
> Is it remove in all PHP version?
In everything after PHP 7, but there is an alternative (of course). Have
a look at
https://stackoverflow.com/questions/21797118/deprecated-mysql-connect
Please also note, that user questions should be asked on the
php-general@ list, and not this security@ email address.
cheers,
Derick