这里是我的字符串
$newPath = '/~new/assets/js/../packages/prettyphoto/js/jquery.prettyPhoto.js';
现在检查这个输出
var_dump($newPath); // string(64) "/~new/assets/js/../packages/prettyphoto/js/jquery.prettyPhoto.js"
var_dump(realpath($newPath)); // bool(false)
没有人知道为什么会回来给我假?