A PHP Error was encountered

Severity: Warning

Message: file_get_contents(http://www.bank.gov.ua/control/ru/curmetal/detail/currency?period=daily) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found

Filename: controllers/php.php

Line Number: 20

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/php.php

Line Number: 22

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 1

Filename: controllers/php.php

Line Number: 23

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 0

Filename: controllers/php.php

Line Number: 23

A PHP Error was encountered

Severity: Notice

Message: Undefined offset: 2

Filename: controllers/php.php

Line Number: 23


Пример парсинга курса валют

(описание реализации php парсинга)

Официальный курс гривни к доллару: = UAH
Проверить результат выполнения кода можно на странице НБУ ссылка