PEAR connection issue with a sight using Smarty and PEAR for the database connections
- or -
Post a project like this2376
$
- Posted:
- Proposals: 3
- Remote
- #1737240
- Awarded
Description
Experience Level: Entry
General information for the website: Site uses Smarty templates but there is an issue with the PEAR class connections
Kind of development: Customization of existing website
Description of every page/module: Not customisation of existing web site, it is fixing an issue with the PEAR database connection in an existing website.
This is a website written in php and smarty template system
Description of requirements/features: The web site has been moved to a new server, the MySQL database has been created, populated and the connection values used by the DB:CONNECT are as those set in the database.
This site was written when PHP4 was the main server version of PHP and so has been written for PHP4 but the server it was located on runs PHP 5.7 so a copy has been placed on a Linux cloud server account running PHP4.4. The problem is because of the MySQL database connections made with the PEAR class do not appear to connect.
This site has been moved between 3 Linux servers over the last few years (Chasing availability of PHP4 on hosting accounts), there has never been an issue with the site not working between these moves... until the move onto this CloudLinux server. The issue appears to be when a connection is attempted through the PEAR class, it appears to fail on the following line that is located in the NPear.php file:
$dbh = DB::connect("mysql://user:password@host/database", true);
The MySQL user, password, host and database used are correct
The server runs CloudLinux with PHP4.4 selected.
Extra notes:
Kind of development: Customization of existing website
Description of every page/module: Not customisation of existing web site, it is fixing an issue with the PEAR database connection in an existing website.
This is a website written in php and smarty template system
Description of requirements/features: The web site has been moved to a new server, the MySQL database has been created, populated and the connection values used by the DB:CONNECT are as those set in the database.
This site was written when PHP4 was the main server version of PHP and so has been written for PHP4 but the server it was located on runs PHP 5.7 so a copy has been placed on a Linux cloud server account running PHP4.4. The problem is because of the MySQL database connections made with the PEAR class do not appear to connect.
This site has been moved between 3 Linux servers over the last few years (Chasing availability of PHP4 on hosting accounts), there has never been an issue with the site not working between these moves... until the move onto this CloudLinux server. The issue appears to be when a connection is attempted through the PEAR class, it appears to fail on the following line that is located in the NPear.php file:
$dbh = DB::connect("mysql://user:password@host/database", true);
The MySQL user, password, host and database used are correct
The server runs CloudLinux with PHP4.4 selected.
Extra notes:
Mike B.
100% (3)Projects Completed
3
Freelancers worked with
3
Projects awarded
50%
Last project
8 Oct 2017
Spain
New Proposal
Login to your account and send a proposal now to get this project.
Log inClarification Board Ask a Question
-
There are no clarification messages.
We collect cookies to enable the proper functioning and security of our website, and to enhance your experience. By clicking on 'Accept All Cookies', you consent to the use of these cookies. You can change your 'Cookies Settings' at any time. For more information, please read ourCookie Policy
Cookie Settings
Accept All Cookies