Re: [Linux-programlama] php -> secili karakter kullanimi

---------

New Message Reply About this list Date view Thread view Subject view Author view Attachment view

From: Bünyamin Ýnan (blacknightro@gmail.com)
Date: Wed 07 Jun 2006 - 09:50:38 GMT


teskkrue derimmm

iyi calismalar

On 6/7/06, Kivanc <kivancerten@yahoo.com> wrote:
>
> Bir de şu var sonradan buldum bu daha kullanışlı
> galiba
>
> $html_entities_match =
> array('#&(?!(\#[0-9]+;))#','#<#', '#>#');
>
> $html_entities_replace = array('&',
> '<','>');
>
> $rumuz =
> preg_replace($html_entities_match,
> $html_entities_replace, $rumuz);
>
>
> --- B�nyamin �nan <blacknightro@gmail.com> wrote:
>
> > selamlar....
> >
> > siteye kayit olmak isteyen ziyaretcilerin kullanici
> > adlarindaki
> > karakterlerin kisitlanmasini istiyorum....
> >
> > ben asagidaki gibi bir fonksiyon yaptim ama daha
> > mantikli oldugunu
> > dusundugunuz bir fonksiyon varmi acaba_?
> >
> > function kullanicidogru($name) {
> > $karakter="abcdefghijklmnoprstuvyzqwx_-.";
> > for ($i=0; $i<strlen($name); $i++) {
> > if (!eregi($name{$i}, $karakter)) {
> > return 0;
> > }
> > }
> > return 1;
> > }
> > > _______________________________________________
> > Linux-programlama mailing list
> > Linux-programlama@liste.linux.org.tr
> >
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
> >
>
>
> __________________________________________________
> Do You Yahoo!?
> Tired of spam? Yahoo! Mail has the best spam protection around
> http://mail.yahoo.com
>
>
> _______________________________________________
> Linux-programlama mailing list
> Linux-programlama@liste.linux.org.tr
> http://liste.linux.org.tr/mailman/listinfo/linux-programlama
>
>
>

_______________________________________________
Linux-programlama mailing list
Linux-programlama@liste.linux.org.tr
http://liste.linux.org.tr/mailman/listinfo/linux-programlama


New Message Reply About this list Date view Thread view Subject view Author view Attachment view

---------

Bu arsiv hypermail 2.1.2 tarafindan uretilmistir.