Reply to Re: selecting specific tag

Your name:

Reply:


Posted by Y.G. on 04/03/06 17:32

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.
>

[Back to original 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

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