You are here: Re: selecting specific tag « PHP Programming Language « IT news, forums, messages
Re: selecting specific tag

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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация