RewriteCond %{HTTP_HOST} ^cityname\.domain\.com$ [NC]
RewriteRule ^news/category/(\d+)$ /news/category-new/$1 [R=301,L]
wget -r -k -l 7 -p -E http://site.com/
// создаете Date-объект с вашим timestamp
var date = new Date( unix_timestamp * 1000 );
// извлекаем часы
var hours = date.getHours();
// минуты
var minutes = date.getMinutes();
// секунды
var seconds = date.getSeconds();
// показываем в нужном формате: 11:17:23
var time = hours + ':' + minutes + ':' + seconds;
params = $('.add_comment').serialize()
$.post('add_comment', {id_advert: <your id advert>, data: params});
public function add_comment_advert(Request $request)
{
$id_advert = $request->input('id_advert');
$id_client = Auth::user()->id;
$comment = $request->input('data.add_comment');
Adverts::add_comment($comment,$id_client,$id_advert);
}
$testStr = '<tr>
<td height="20"><a title="Замена кнопки Home" href="/V-iPhone-ne-rabotaet-knopka-Home">Замена кнопки HOME</a></td>
<td align="center"><span id="id169-iphone-5-home">1200</span></td>
<td align="center">от 30 минут</td>
<td align="center">3 месяца</td>
</tr>
<tr>
<td height="20"><a title="Ремонт кнопки блокировки" href="/Ne-rabotaet-knopka-vkliucheniia">Замена кнопки включения</a></td>
<td align="center"><span id="id166-iphone-5-power">1400</span></td>
<td align="center">от 30 минут</td>
<td align="center">3 месяца</td>
</tr>';
$regExpWrapper = "#<span(?:.*?)\"id(.*?)\-#si";
preg_match_all($regExpWrapper, $testStr, $matches);
print_r($matches);