我似乎无法获得使用变量的realpath函数有没有办法解决这个问题?当我在函数中使用变量时,它返回任何我知道路径名在没有realpath函数的情况下工作但我想使用带路径名的realpath函数.
realpath('./members/' . $userId . '/images/thumbs/' . $image);
Run Code Online (Sandbox Code Playgroud)
编辑真实路线.
http://localhost/Project/members/24/images/thumbs/avatar.png
Run Code Online (Sandbox Code Playgroud) php ×1