Q:

PHP Version Issue

My website is in CORE PHP, I have copied onto other server, same files and imported the DB, even though changed the configuration; but don't know why the same code gives me an error

Strict Standards: Non-static method DB::connect() should not be called
  statically in

If I resolve the issue, the issue will generate onto next line. Large numbers of same error shows me on page.
I am doubted on PHP Version
the running website has PHP VERSION is 5.2.17 while the staging server has 5.5.37.

A:

You can either remove E_STRICT from error_reporting(), or you can simply make your method static, if you need to call it statically.
Also, Calling non-static functions in a static context are now deprecated as of PHP 5.6, and the functionality will be removed altogether in a future version, so better to use latest version

