if ((substr($url,0,7) == "http://") or (substr($url,0,8) == 'https://')) {
if ((substr($file,0,7) == "http://") or (substr($file,0,8) == 'https://')) {