|
|
|
|
@ -10,7 +10,7 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
defined('BASEPATH') or exit('No direct script access allowed');
|
|
|
|
|
ini_set('memory_limit', '128M');
|
|
|
|
|
ini_set('memory_limit','256M');
|
|
|
|
|
class updatestation extends CI_Controller
|
|
|
|
|
{
|
|
|
|
|
|
|
|
|
|
@ -32,11 +32,12 @@ class updatestation extends CI_Controller
|
|
|
|
|
|
|
|
|
|
public function test(){
|
|
|
|
|
$results="";
|
|
|
|
|
for($i=1; $i<=90000; $i++){
|
|
|
|
|
for($i=1; $i<=2000000; $i++){
|
|
|
|
|
$results.='"'.$i.'"';
|
|
|
|
|
}
|
|
|
|
|
$len = strlen($results);
|
|
|
|
|
header("Content-Length: $len");
|
|
|
|
|
header("Content-Length: ".$len);
|
|
|
|
|
header("Content-Encoding:UTF-8");
|
|
|
|
|
echo $results;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -93,7 +94,8 @@ class updatestation extends CI_Controller
|
|
|
|
|
);
|
|
|
|
|
|
|
|
|
|
$len = strlen($NewStationList);//count( explode("@",$NewStationList))-1;
|
|
|
|
|
header("Content-Length: $len");
|
|
|
|
|
header("Content-Length: ".$len);
|
|
|
|
|
header("Content-Encoding:UTF-8");
|
|
|
|
|
echo $NewStationList;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
@ -157,7 +159,7 @@ class updatestation extends CI_Controller
|
|
|
|
|
$data["StationCN"] = $arr_StationFileDetail[3];
|
|
|
|
|
$data["Station"] = $arr_StationFileDetail[2];
|
|
|
|
|
$data["Code"] = $arr_StationFileDetail[1];
|
|
|
|
|
$this->station_model->AddStation($data);
|
|
|
|
|
//$this->station_model->AddStation($data);
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
echo $NewStation;
|
|
|
|
|
|