Answer the question
In order to leave comments, you need to log in
Where is the $DOCUMENT_ROOT variable set?
Good afternoon.
Actually where is the $DOCUMENT_ROOT variable set?
No database connection after site migration.
Connecting to the database is written like this:
include_once "$DOCUMENT_ROOT/auth.php";
Answer the question
In order to leave comments, you need to log in
I took it from the old server and re-uploaded php.ini to which I transfer and voila, it worked.
Compared these php.ini with diff
Here's the difference:
https://docs.google.com/document/d/1qi8OqeKvWerbr_...
This is old code. On new php you have something like $_SERVER['DOCUMENT_ROOT'] - php.net/manual/en/security.globals.php
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question