Пример #4 Использование потоковых контекстов<?php // Создаем поток $opts = array( 'http'=>array( 'method'=>"GET", 'header'=>"Accept-language: en\r\n" . "Cookie: foo=bar\r\n" ) ); $context = stream_context_create($opts); // Открываем файл с помощью установленных выше HTTP-заголовков $file = file_get_contents('http://www.example.com/', false, $context); ?>
alert('Hello\nworld!');
</li>
на новую строку, чтобы элемент задублировался.You can use:stackoverflow.com/questions/3887509/mysqls-now-1-day
NOW() + INTERVAL 1 DAY
If you are only interested in the date, not the date and time then you can use CURDATE instead of NOW:
CURDATE() + INTERVAL 1 DAY