📅  最后修改于: 2022-03-11 14:54:09.536000             🧑  作者: Mango
function path2url($file, $Protocol='http://') {
return $Protocol.$_SERVER['HTTP_HOST'].str_replace($_SERVER['DOCUMENT_ROOT'], '', $file);
}