Answer the question
In order to leave comments, you need to log in
How can I disable the display of the deprecated feature message?
Hello!
My PHP project uses a deprecated function that shows an error at the beginning of every page
Deprecated: mysql_pconnect(): The mysql extension is deprecated and will be removed in the future: use mysqli or PDO instead in /var/www/chess/mcc_common.php on line 2205
Answer the question
In order to leave comments, you need to log in
Through the collective efforts of local hamsters (excluding the most stoned one), we managed to collect the correct answer:
put a squiggle like this @ before calling your deprecated function
i.e. was mysql_pconnect...
became @mysql_pconnect...
no spaces between @ and mysql_pconnect
1. hide warning block with css
2. in server settings disable error notifications https://www.google.de/#q=apache+notice+off
php_flag display_errors off
php_value error_reporting 0
php.net/manual/en/function.error-reporting.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question