I often find that I have files in my projects that need to be accessed from the file system as well as the users browser. One example is uploading photos. I need access to t
Try this:
$imgUrl = str_replace($_SERVER['DOCUMENT_ROOT'], '', $imgPath)