RewriteEngine on
RewriteRule about _app/views/about.php
RewriteEngine on
RewriteRule ^([a-zA-Z0-9_-]+)$ _app/views/$1.php
function formatStringToDate(dateString) {
var regex = /(\d{2}).(\d{2}).(\d{4}) (\d{2}):(\d{2})/;
var dateArray = regex.exec(dateString);
var dateObject = new Date(
(+dateArray[3]),
(+dateArray[2])-1,
(+dateArray[1]),
(+dateArray[4]),
(+dateArray[5])
);
return dateObject;
}
var str1 = '30.10.2015 19:53';
var str2 = '26.04.2016 16:23';
var date1 = formatStringToDate(str1);
var date2 = formatStringToDate(str2);
if (date1 > date2) {
alert('date1>date2');
} else if (date2 > date1) {
alert('date1<date2');
} else {
alert('date1=date2');
}
$proxy = "127.0.0.1:8080";
$url = "https://toster.ru/q/253164";
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, $url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt($ch, CURLOPT_USERAGENT, "Mozilla/5.0 (Windows NT 6.3; rv:36.0) Gecko/20100101 Firefox/36.0");
curl_setopt($ch, CURLOPT_PROXY, $proxy);
$page = curl_exec($ch);
curl_close($ch);
echo $page;
language — The language in which to return results. See the list of supported domain languages. Note that we often update supported languages so this list may not be exhaustive. If language is not supplied, the geocoder will attempt to use the native language of the domain from which the request is sent wherever possible.