I have been dropped in the deep end by being asked to migrate an OLD custom built website (using php and mysql) to another server. I have changed the config to reflect the new location but all I get is a white screen. The DB connects fine so that isn't the issue, I think it might be with the $doc_root. Can anyone help with the code below?
$doc_root = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])))."";
$DOC_ROOT = str_replace( '\\', '/', substr($_SERVER['SCRIPT_FILENAME'], 0, 0-strlen($_SERVER['PHP_SELF'])))."";
I dont know php too well unfortunately so I am stuck! The current test server address is in this formathttp://xx.xxx.xx.xx/thedomain.com/
I have tried so many combinations of the above for the $doc_root but whatever I do won't work.
Can anyone help? Thanks in advance!