Here is my string
$newPath = '/~new/assets/js/../packages/prettyphoto/js/jquery.prettyPhoto.js';
Now check this output
var_dump($newPath); // string(64) "/~new/assets/js/../packages/prettyphoto/js/jquery.prettyPhoto.js"
var_dump(realpath($newPath)); // bool(false)
Does anyone know why this would be returning false on me?