from the php 5.5.x and the future releases php won't support the old ext/mysql, however i want to upgrade from php 5.3.x to php 5.5 and i worry about that i use scripts that use the mysql_xxx methods (as opposed to mysqli_xxx or PDO) some of those scripts don't have any upgrade to use the mysqli_xxx or PDO i just want to know if i turn the display_errors off is that enough to keep using the scripts that still using the mysql_xxx method or those scripts won't work any more and to hide the error message best regards
As the functions will still be present, you'll be able to still use those scripts. If display errors is off, or error reporting has ~E_DEPRECATED in it, then the errors relating to mysql being deprecated won't show. You should however contact the app authors and get them to update their programs for use with mysqli or PDO.
Providing you turn error display off in the phpini file, you should be good to go. We have a script which is similar, some older style coding but nothing dangerous, so we disabled error reporting and it has been fine since. So just turn it off and do not worry, hopefully they will release an update at some point for you, PHP has changed versions a lot lately, .2-.3 versions in a year I believe
That there are still major commercial scripts with new versions released THIS YEAR that still use the mysql_ functions pisses me off no end. We've been told for EIGHT YEARS to stop using it, but much like the folks who still sleaze out HTML 4 tranny (who seem to be the only ones dumb enough to embrace 5) most developers can't seem to pull their heads out of a decade ago's backside. Guess they've been shoving it up the 1990's arse for so long we better call a orthodontist to help. When six drops and obsoletes / removes it entirely everyone's gonna run around like chickens with their heads cut off, and we'll have that same stupid malfing "let's run two versions side by side at once" we had with 4/5. Pathetic when they'll have had over a decade to prepare for it. It ends up being a bit like Ike's assessment of pre-war America. "Urgent directives from above and protest from the occasional "Alarmist" could not eliminate an apathy that had its roots in comfort, blindness and wishful thinking." -- Dwight D. Eisenhower "Crusade in Europe"
If you want to upgrade to a PHP version that has removed (and not just deprecated) mysql_* methods you have two choices: * If your codebase is small, or have centralized object that handles DB methods, consider switching to PDO or MySQLi. * If your codebase is big or will involve too much risk to make too much code change at one point (example a site with little or no unit testing), consider using a PDO wrapper @ http://www.phpclasses.org/package/8221-PHP-Access-MySQL-databases-using-PDO-wrapper-functions.html. It is fairly new, but I will be updating it if I become aware of any issues with it.
It was actually only this year that i have upgraded all my ecommerce sites with mysqli. It just takes time Of course not 8 years