Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
<? // Скрипт сделал Сейшельский - http://seosey.ru. Переделки приветствуются. Комментарии можно оставить здесь - http://seosey.ru/2010/08/prostoj-skript-dlya-skloneniya-slov-po-padezham/ header('Content-Type: text/html ; charset="utf-8"'); $file = file_get_contents('file.txt'); $file = explode(chr(10), $file); $delim = '|'; foreach ($file as $k => $v) { $url = "http://export.yandex.ru/inflect.xml?name=$v"; $xml = simplexml_load_file($url); $original = $xml->original; $im = trim($xml->inflection[0]); $rod = trim($xml->inflection[1]); $dat = trim($xml->inflection[2]); $vin = trim($xml->inflection[3]); $tvor = trim($xml->inflection[4]); $predl = trim($xml->inflection[5]); echo $im.$delim.$rod.$delim.$dat.$delim.$vin.$delim.$tvor.$delim.$predl.chr(10); echo '<br />'; } ?>
This paste will be private.
From the Design Piracy series on my blog: