Well, when I put this in:
$rootPath = realpath("/home/687_332_0/332");
echo $rootPath;
The above example will print: 687_332_0 / 332 ( RUN! )
However, when I put what is below, echo does not work :
$rootPath = realpath("/home/".$folder1."/".$folder2);
ou $rootPath = realpath('/home/'.$folder1.'/'.$folder2);
ou $rootPath = realpath("/home/$folder1/$folder2");
ou o mesmo processo com essas variáveis convertidas com strval() ou (string)
$caminho1 = strval($folder1);
$caminho2 = (string)$folder2;
echo $rootPath;
The above example will print: NOTHING!
Why does this happen and how do I resolve it?