|
Posted by Y.G. on 04/03/06 18:03
I'm sorry, it actually workd! thank you
Y.G. wrote:
> actually, it reads in the data from another site (the weblog has to be
> hosted by them). Your thing works partially. It does not remove the
> <div> from the oriiginal messaqge...
>
> milahu wrote:
>> I recommend using preg_* since it's usually faster than ereg_*.
>>
>> Try this one:
>>
>> preg_replace(
>> '#^(.*)(<div class="foo">.*</div>)#isU',
>> '$2$1',
>> $content
>> );
>>
>> If you store your contents in a database it would be easier (and
>> performance saving) to store the image in a separate row.
>>
Navigation:
[Reply to this message]
|