Fuel\Core\PhpErrorException [ Warning ]:
file_get_contents(https://www.able-nw.com/boston/property/18278-030539): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
288 } 289 290 291 public function action_rentchintai($building_id,$room_id){ 292 $file ='https://www.able-nw.com/boston/property/'.$building_id.'-'.$room_id; 293 $str = file_get_contents($file); 294 $dom= new DOMDocument(); 295// @$dom->loadHTMLFile($file); 296 @$dom->loadHTML($str); 297 $xpath = new DOMXpath($dom); 298 $domTables = $xpath->query("//div[@id='content']");
107 include COREPATH.'classes/errorhandler.php'; 108 class_alias('\Fuel\Core\Errorhandler', 'Errorhandler'); 109 class_alias('\Fuel\Core\PhpErrorException', 'PhpErrorException'); 110 } 111 112 return \Errorhandler::error_handler($severity, $message, $filepath, $line); 113}); 114 115function setup_autoloader() 116{ 117 \Autoloader::add_namespace('Fuel\\Core', COREPATH.'classes/');
288 } 289 290 291 public function action_rentchintai($building_id,$room_id){ 292 $file ='https://www.able-nw.com/boston/property/'.$building_id.'-'.$room_id; 293 $str = file_get_contents($file); 294 $dom= new DOMDocument(); 295// @$dom->loadHTMLFile($file); 296 @$dom->loadHTML($str); 297 $xpath = new DOMXpath($dom); 298 $domTables = $xpath->query("//div[@id='content']");
18 $room_id = 0; 19 if(count($arr)>1){ 20 $room_id = $arr[1]; 21 } 22 if($building_id>10000){ 23 $this->action_rentchintai($building_id,$room_id); 24 }else{ 25 26 //ダイレクトサーチ用 27 $keyword = Input::get("keyword"); 28 if(!empty($keyword)){
478 // fire any controller started events 479 \Event::instance()->has_events('controller_started') and \Event::instance()->trigger('controller_started', '', 'none'); 480 481 $class->hasMethod('before') and $class->getMethod('before')->invoke($this->controller_instance); 482 483 $response = $action->invokeArgs($this->controller_instance, $this->method_params); 484 485 $class->hasMethod('after') and $response = $class->getMethod('after')->invoke($this->controller_instance, $response); 486 487 // fire any controller finished events 488 \Event::instance()->has_events('controller_finished') and \Event::instance()->trigger('controller_finished', '', 'none');
129 $response = Response::forge($response); 130 } 131 } 132 elseif ($e === false) 133 { 134 $response = Request::forge()->execute()->response(); 135 } 136 elseif ($route) 137 { 138 $response = Request::forge($route, false)->execute(array($e))->response(); 139 }
168{ 169 // Boot the app... 170 require APPPATH.'bootstrap.php'; 171 172 // ... and execute the main request 173 $response = $routerequest(); 174} 175catch (HttpBadRequestException $e) 176{ 177 $response = $routerequest('_400_', $e); 178}