$path = (public_path("images/") . $filename);
echo $path;
C:\wamp\www\jobpost\public\images/Person.PNG //这里的斜杠有问题
我想让这个路径可以访问我的图片
C:\wamp\www\jobpost\public\images\Person.PNG //该如何实现
(public_path("images\") . $filename);
//i add the slash like this error occur
ord
,所以不需要转义。 - JustOnUnderMillionsDIRECTORY_SEPARATOR
来分隔这两个路径; - hassan