Reply to Re: swear filter

Your name:

Reply:


Posted by Hans 'pritaeas' Pollaerts on 10/11/78 11:53

The code is not working because you used:

$line = fgets ($fp, 1024);

instead of

$line = trim (fgets ($fp, 1024));

Because you didn't use trim, the word contains newlines, and that isn't in
$textarea,
so preg_replace didn't find anything.

Hans


"Mike" <mike@mjfcadsolutions.co.uk> wrote in message
news:1153392527.188513.235570@m73g2000cwd.googlegroups.com...
> Don't know. I haven't tried it.
>
> I appriciate your contribution but to help me progress with PHP, I
> would be interested to know why my code wasn't working.
>
> Thanks
>
> Mike
> Hans 'pritaeas' Pollaerts wrote:
> > Is my first suggestion not working then ?? (The preg_replace with the
> > arrays)
> >
> > Hans
> >
> > "Mike" <mike@mjfcadsolutions.co.uk> wrote in message
> > news:1153331546.231524.64150@i3g2000cwc.googlegroups.com...
> > > Can anyone help with my original question?
> > >
> > > Thanks
> > >
> > > Mike
> > >
>

[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

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