ты точно напиши
а не примерно
Код:
001. You're alive. Do something. The directive in life, the moral imperative was so uncomplicated. It could be expressed in single words, not complete sentences. It sounded like this: Look. Listen. Choose. Act.
. . .
002. The first step to getting the things you want out of life is this: Decide what you want.
. . .
003. Oh, life is a glorious cycle of song,
A medley of extemporanea;
And love is a thing that can never go wrong;
And I am Marie of Romania.
. . .
004. It's not true that life is one damn thing after another; it is one damn thing over and over.
. . .
005. Life is as tedious as a twice-told tale
Vexing the dull ear of a drowsy man.
. . .
006. A wretched soul, bruised with adversity,
We bid be quiet when we hear it cry;
But were we burdened with like weight of pain,
As much or more we should ourselves complain.
. . .
007. And since you know you cannot see yourself,
so well as by reflection, I, your glass,
will modestly discover to yourself,
that of yourself which you yet know not of.
Думаю сначала нужно будет с помощью граббера выбрать всё что находится между
.
. . .
записать полученный результат в файл, так чтобы каждая цитата занимала только одну строку. При этом если кол-во строк в цитате больше одной, то скрипт должен вставлять тэг br
т.е скрипт должен выбрать из
Код:
006. A wretched soul, bruised with adversity,
We bid be quiet when we hear it cry;
But were we burdened with like weight of pain,
As much or more we should ourselves complain.
. . .
только
Код:
A wretched soul, bruised with adversity,
We bid be quiet when we hear it cry;
But were we burdened with like weight of pain,
As much or more we should ourselves complain.
записав в файл это одной строчкой
Код:
A wretched soul, bruised with adversity,<_br>We bid be quiet when we hear it cry;<_br>But were we burdened with like weight of pain,<_br>As much or more we should ourselves complain.
Ну а потом уже наверно будет несложно полученный файл засунуть в БД.
Вот, может кто знает как это все реализовать?