Your glob
is returning paths relative to the drive root. When accessing through the browser, it is done relative to the document root, which is most likely the public_html
folder.
You will need to do something like:
"... src='".substr($image,strlen($_SERVER['DOCUMENT_ROOT']))."' ..."