"; //echo "type = " . $type; //echo "
"; //echo "verify_code = " . $verify_code; //echo "
"; //echo "code = " . $code; //读取文件数据 $file = 'baidu_verify_datas_tmp'; $content = array(); if(file_exists($file)) { $content = json_decode(file_get_contents($file),TRUE); } $content[$code] = $verify_code; //echo "
==================
"; //echo var_export($content,true); file_put_contents($file,json_encode($content)); echo "写入成功"; } else { echo "访问到"; } ?>