function getcontents($url){
if(filter_var($url,FILTER_VALIDATE_URL)) {
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1);
curl_setopt($ch, CURLOPT_ENCODING, 'gzip');
// ssl?
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, 0);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, 0);
$output = curl_exec($ch);
curl_close($ch);
return $output;
}
return file_get_contents($url);
}
echo getcontents('https://www.rusprofile.ru/id/11597949');
<base href="/build">
...
$each(msg, function(index,value){
var placeholder=$('<span></span>').appendTo('.carousel-inner');
$.ajax(
...
if(i==0){
placeholder.replaceWidth('<div class...
$text = 'JA Ja jA ja';
$text = preg_replace('/J(?i:a)/', 'Я', $text);
$text = preg_replace('/j(?i:a)/', 'я', $text);
curl_setopt($ch, CURLOPT_ENCODING ,"gzip")
let sel=$('.select-wrapper>#select');
if (sel.length>0){ // если структура уже обрамлена - сюда не попадем
sel
.wrap('<div class="select-inner"></div>' )
.after('<ul class="dropdown-select">'+
'<input type="text" placeholder="Найти" class="search" id="dropdown-search">'+
'<div class="dropdown-block">'+
'</div>'+
'</ul>');
let ddblock=$('.select-wrapper .dropdown-block');
$('option', sel).each(function(){
$('<li class="dropdown-select__item">'+$(this).text()+'</li>').appendTo(ddblock);
}
)
}
str_replace(
array('january','february','march','april','may','june','july',
'august','september','october','november','december'),
array('января','февраля','марта','апреля','мая','июня','июля',
'августа','сентября','октября','ноября','декабря'),
strtolower(date('j F, Y г.',
$daystr)));
и локаль аглицкая, конечно...