babyrats
babyrats

Reputation: 2017

Problems with moving site to new host

I have moved my php site to a new host but this is causing massive problems, namely with the require(mysqli_connect.php) which, ofcourse is to connect to the database. Any file that has this require does not load up, leaving just a blank page. These pages worked perfectly fine before switching and work fine if I comment out the require. Would the db not connecting cause this require to fail?

I haven't used php for 2 years+ now, so sorry if this is not enough detail, but not sure what more I can give.

Upvotes: 0

Views: 114

Answers (2)

glebtv
glebtv

Reputation: 3839

Enable PHP error reporting to see what the error really is. In the script itself, before the require('mysqli_connect.php'):

error_reporting(E_ALL);

or in .htaccess file

php_flag display_errors on
php_value error_reporting E_ALL

Upvotes: 0

kapa
kapa

Reputation: 78671

Mysqli might not be installed on that server. Either ask the admin of the server to solve this problem, or if it is yours, check this out:

http://www.php.net/manual/en/mysqli.setup.php

Upvotes: 2

Related Questions