//获取网上的一个文件function getUrlImage($url, $file = '', $maxExe = 0, $safe = false){ $urlExt = explode('.', $url); $fileExt = array('txt','jpg','gif','png'); if(!in_array(end($urlExt), $fileExt, true)) return false; $file = ($file)? $file.$urlExt : basenam…