I am trying to migrate an application from PHP 5.2.X to PHP 5.4.4 and I am having a few problems related to how the app connects to the database.
The new server fails on this line:
$this->db = @mysql_pconnect(_DBHOST,_DBUSER,_DBPASS);
I know that the new versions have changed the way the apps connect to the database but I have been trying to connect with other methods and I couldn't. I think it should be related to the server configuration which can be found here: http://bit.ly/S2px7Q
What I see is that mysqlnd is installed but not the mysql, mysqli or PDO. Is that correct?
@will shed some light on the cause of the problem, mmm?mysql_*functions. They're being deprecated. Instead use PDO (supported as of PHP 5.1) or mysqli (supported as of PHP 4.1). If you're not sure which one to use, read this article.