Post date: Dec 9, 2013 10:43:56 AM
$postdata = http_build_query( array('orders' => $numberOrd, 'CountInList' => 2, 'clientId' => $userId) ); $opts = array('http' => array( 'method' => 'POST', 'header' => 'Content-type: application/x-www-form-urlencoded', 'content' => $postdata ) ); $context = stream_context_create($opts); $file = file_get_contents('http://192.168.0.24/cgi-bin/order_print.cgi', false, $context); во вью: header('Content-type: application/pdf'); print_r($file);