10 2013 档案
摘要:<?phpset_time_limit (0);/** $url 图片地址* $filepath 图片保存地址* return 返回下载的图片路径和名称*/function getimg($url, $filepath,$i) { if ($url == '') { return false; } $ext = strrchr($url, '.'); if ($ext != '.gif' && $ext != '.jpg') { return false; } //判断路经是否存在 !is_dir($file
阅读全文
摘要:*/$formname = 'file';$path = 'test';$allowtype_array = array('mp3','txt','jpg');var_dump($_FILES['file']);exit;upload_file($formname,$path,$allowtype_array); /************文件上传函数******************/ /* *$formname Html上传表单名称 *$allowtype_array 允许上传的文件类型数组
阅读全文