{% else-1 %}
Создайте php файл потом этот код напишите в index include 'название файла';
Ставте + задание благодарю всем

                        
<?

echo date("d");

echo '<div class="link"><a href="valut.php">Курсы валют</a><span class="count">$';

$curl = curl_init();
curl_setopt($curl,CURLOPT_URL,'http://wap4u.ru/kurs/?'.$_SERVER['QUERY_STRING']);
curl_setopt($curl,CURLOPT_USERAGENT,'Nokia: 5130');
curl_setopt($curl,CURLOPT_TIMEOUT,6);
curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);
$text = curl_exec($curl);
curl_close($curl);

$text = str_replace('</font>','</font><br/>',$text);
$text = str_replace('/2014','/2014<br/>',$text);
$text = str_replace('/2015','/2015<br/>',$text);
$text=preg_replace('|<!DOCTYPE(.*?)USD - 1 Доллар США =|is', '', $text);
$text=preg_replace('|<img src="img/eur.png" alt="."/> EUR - 1 Евро(.*?)</html>|is', '', $text);
$text = str_replace('<br/>Содержание</a><br/>','',$text);
$text = str_replace('<a href="index.php?fon=FFFFFF&amp;txt=76625B&amp;stxt=9E8379&amp;url=">Содержание</a><br/>','',$text);
$text = str_replace('src="img','src="http://wap4u.ru/kurs/img',$text);

echo $text;

echo '</body></html>';
?>
-1 36 0
0

Нет фото
Fear * 0.02
• 20 фев 2016, 17:32


Кревый руки у тебя

0

Нет фото
6po * 0.36
• 13 фев 2016, 09:15


Кодировка в коде не верная...

0

Нет фото
Енот * 16.13
• 13 фев 2016, 07:05


http://profiwm.com/zc/file7626