Forum Moderators: coopster
Why this works on server but not
$_PATH1="http://" . $_SERVER['SERVER_NAME']."/";
This shows (when echo my server value) and it is correct but include file is not seen...
Is there some global variable or info (php) element that defines what will be working for included files?
2. But include files do not work with this path. I should use
$_PATH=$_SERVER['DOCUMENT_ROOT']."/";
In this way it will not be seen path of server files. When I use this path for images it will be seen file path on server which is not correct way.
do you have any idea why it gives issue when I use point number 1 for INCLUDE files? Strange behaviour for included files...It worked on old server (old PHP version).
Need urgent help.