开发者

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.


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


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
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜