I need to implement functions to check whether paths and urls are relative, absolute, or invalid (invalid syntactically- not whether resource exists). What are the range of
if(strpos($uri,'://')!==false){
//protocol: absolute url
}elseif(substr($uri,0,1)!='/'){
//leading '/': absolute to domain name (half relative)
}else{
//no protocol and no leading slash: relative to this page
}