// Пример набора заголовков
$headers = [
'Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8',
'Accept-Encoding: gzip, deflate',
'Accept-Language: en-US,en;q=0.5',
'Cache-Control: no-cache',
'Content-Type: application/x-www-form-urlencoded; charset=utf-8',
'Host: www.example.com',
'Referer: http://www.example.com/index.php',
'User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux i686; rv:28.0) Gecko/20100101 Firefox/28.0'
];
$curl = curl_init();
curl_setopt_array($curl, array(
CURLOPT_RETURNTRANSFER => 1,
CURLOPT_URL => $link_zapros, //Адрес запроса
CURLOPT_USERAGENT => 'ctrlv cURL Request',
CURLOPT_POST => 1,
CURLOPT_POSTFIELDS => $data, //Параметры
CURLOPT_HTTPHEADER => $headers // Заголовки
));
$response = curl_exec($curl);
curl_close($curl);
touch app-search/{app-search.js,app-search.scss}
touch app-search/app-search.js, app-search/app-search.scss
cd /path/to/app-search; touch app-search.js, app-search.scss
/path/to/app-search/app-search.js
/path/to/app-search/app-search.scss
for i in `cat /tmp/list`; do touch $i; done;
chmod +x touch_my_files.sh
./touch_my_files.sh
The 410 Gone Error is an HTTP response status code indicating that the resource requested by the client has been permanently deleted.
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<title>Пример</title>
</head>
<style>
.header {
position: absolute;
left: 0px;
top: 0px;
width: 1920px;
height: 4776px;
z-index: 140;
background-color: coral;
}
.About {
font-size: 15px;
font-family: "Myriad Pro";
color: rgba(255, 255, 255, 0.502);
text-transform: uppercase;
line-height: 1.8;
text-align: left;
position: absolute;
left: 1361.937px;
top: 31px;
z-index: 137;
}
.products {
font-size: 15px;
font-family: "Myriad Pro";
color: rgba(255, 255, 255, 0.502);
text-transform: uppercase;
line-height: 1.8;
text-align: left;
position: absolute;
left: 1183.937px;
top: 31px;
z-index: 136;
}
.Home {
font-size: 15px;
font-family: "Myriad Pro";
color: rgba(255, 255, 255, 0.502);
text-transform: uppercase;
line-height: 1.8;
text-align: left;
position: absolute;
left: 1020.937px;
top: 31px;
z-index: 135;
}
.Menu {
font-size: 15px;
font-family: "Myriad Pro";
color: rgba(255, 255, 255, 0.502);
text-transform: uppercase;
line-height: 1.8;
text-align: left;
position: absolute;
left: 70.937px;
top: 31px;
z-index: 134;
}
.en {
font-size: 15px;
font-family: "Myriad Pro";
color: rgba(255, 255, 255, 0.502);
text-transform: uppercase;
line-height: 1.2;
text-align: left;
position: absolute;
left: 1856.937px;
top: 35.5px;
z-index: 133;
}
.Wooder {
font-size: 36px;
font-family: "Myriad Pro";
color: rgb(255, 255, 255);
text-transform: uppercase;
line-height: 1.2;
text-align: center;
position: absolute;
left: 717.844px;
top: 19.9px;
z-index: 128;
}
</style>
<body>
<div class="header">
<a href="#" class="About">About</a><br>
<a href="#" class="products">products</a><br>
<a href="#" class="Home">Home</a><br>
<a href="#" class="en">en</a><br>
<a href="#" class="Wooder">Wooder</a><br>
</div>
</body>
</html>
echo "</div><div class=\"buttons\"><a data-fancybox data-src=\"#call\" href=\"javascript:;\" class=\"order button\">Заказать выезд мастера</a><br><a href=\"https://api.whatsapp.com/send?phone=";
echo the_field('whatsapp', 17);
echo "\" class=\"whatsapp messenger-buttons\" title=\"WhatsApp\" onclick=\"ym(66111247, 'reachGoal', 'WhatsApp'); return true;\"><span>Написать в WhatsApp</span></a></div></div></div>";