I have the following code:
$path = "/home/web/public_html/user/images/".$_SESSION['Userid']."";
echo $path;
define('SFU_REALPATH', '/home/web/public_html/user/images/$_SESSION[Userid]');
When I echo $path it shows up as:
/home/web/public_html/user/images/2
but when I do echo SFU_REALPATH it shows up as:
/home/web/public_html/user/images/$_SESSION[Userid]
Why doesn't it resolve in the define() but does outside of it?
Thanks for any advice on how to do this.