well i do a simple mysql_query on my website and then get the value of a file which is:
/downloads/test2/testint/downloads.php.txt
here is the code im using to get the info from the db:
$getdlinfo = mysql_query("SELECT dlname, dllink, isurl FROM $dltbl WHERE dlid='$dlid'") or die(mysql_error());
$getdlinfo = mysql_fetch_array($getdlinfo);
$getdlname = $getdlinfo['dlname'];
$getdllink = $getdlinfo['dllink'];
echo $getdllink.'<br>';
$dlpath = $DOCUMENT_ROOT.'/'.$getdllink;
echo $dlpath.'<br>';
$getdllink should output:
/downloads/test2/testint/downloads.php.txt
but it outputs D
and the $dlpath should output the same but with the value of document root before it,
here is what comes up
$getdllink = D
$dlpath = /home/user~2/public_html/directory~3/D