$param_value ) { $post_params .= '&'.$param_name.'='.$param_value; } $open_url .= $post_params; } $result_content = file_get_contents($open_url); $result = array(); if ( $result_content !== false ) { $result = unserialize($result_content); } return $result['view']; } } $opensite = new OpenSite(array()); $param = array('page' => 1); echo $opensite->open($param); ?>