<?php
$ch = curl_init();
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, FALSE);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, TRUE);
curl_setopt($ch, CURLOPT_COOKIESESSION, TRUE);
curl_setopt($ch, CURLOPT_HEADER, 0);
curl_setopt($ch, CURLOPT_COOKIEFILE, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIEJAR, "cookiefile");
curl_setopt($ch, CURLOPT_COOKIE, session_name() . '=' . session_id());
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_URL, 'http://example.com/page1.php');
$result1 = curl_exec($ch);
curl_setopt($ch, CURLOPT_URL, 'http://example.com/page2.php');
$result2 = curl_exec($ch);
curl_close($ch);
?>
<html>
<head>
<style>
.video_block{
clear:both;
width:100%;
}
.width50{
outline: 1px solid #fff;
width:50%;
}
.left{
float:left;
}
.right{
float:right;
}
</style>
</head>
<body>
<div class="video_block">
<div class="width50 left">
<iframe width="100%" height="300" hight src="https://www.youtube.com/embed/59ZOOqUAOmw" frameborder="0" allowfullscreen></iframe>
</div>
<div class="width50 right">
<iframe width="100%" height="300"src="https://www.youtube.com/embed/VMk_xSlVqVY" frameborder="0" allowfullscreen></iframe>
</div>
<hr>
</div>
</body>
</html>
//echo '<pre>';print_r($_SERVER);echo '</pre>';
if((empty($_SERVER['DOCUMENT_URI']) || $_SERVER['DOCUMENT_URI']=='/index.php')&&
empty($_SERVER['QUERY_STRING'])){
}else{
echo '<button type="button" class="btn btn-link" onclick="history.back()">
<i class="glyphicon glyphicon-arrow-left"></i><span>Назад</span></button>';
}
$NewCanves = imagecreatetruecolor($NewWidth, $NewHeight);
imagealphablending($NewCanves, false);
imagesavealpha($NewCanves, true);
if(imagejpeg($NewCanves,$DestImage,$Quality)){
if(imagepng($NewCanves,$DestImage,$Quality)){
resizeImage($imagePath,$destPath,$NewImageWidth=230,$NewImageHeight=138,$Quality=100);