PHP
1
Вклад в тег
$scu = $url . '?' . http_build_query($data);
$opts = array('http' =>
array(
'method' => 'GET',
'max_redirects' => '0',
'ignore_errors' => '1',
)
, 'ssl' => array(
'verify_peer' => true,
'cafile' => '/SRV/php721/extras/ssl/' . "cacert.pem",
'ciphers' => 'HIGH:TLSv1.2:TLSv1.1:TLSv1.0:!SSLv3:!SSLv2',
'CN_match' => $cn_match,
'disable_compression' => true,
)
);
$context = stream_context_create($opts);
$stream = fopen($scu, 'r', false, $context);
// информация о заголовках, а также
// метаданные о потоке
echo Debug::d(stream_get_meta_data($stream),'stream_get_meta_data($stream)');
// актуальная информация по ссылке $url
echo Debug::d(stream_get_contents($stream),'stream_get_contents($stream)');
fclose($stream);
$(document).on('click', '.add_answer', function (e) {
let trs = $('#question_type_1 [class^=answer_number_]:last-child').attr('class');
trs = trs.replace('answer_number_','');
//console.log(trs);
trs *= 1; trs += 1;
$('#question_type_1 tbody').append(
'<tr class="answer_number_' + trs + '">'+
'<td>' + trs +'</td>'+
'<td>'+
' <input class="form-control" type="text" name="answer' + trs + '">'+
'</td>'+
'<td>'+
' <span class="badge badge-secondary">True</span>'+
' <span class="badge badge-danger active">False</span>'+
' <span class="badge badge-success add_answer pl-2 pr-2">+</span>'+
' <span class="badge badge-danger del_answer pl-2 pr-2">-</span>'+
'</td>'+
'</tr>'
);
return false;
});
sc.exe query vboxdrv
sfc /scannow