Kamis, 19 September 2013

PHP Indonesia - Facebook: bkin fungsi filterisasi supaya g blh ad badword gm...

PHP Indonesia - Facebook
PHP Indonesia is a community for everyone that loves PHP. Our focus is in the PHP world but our topics encompass the entire LAMP stack. Topics include PHP coding, to memcached handling, db optimizations, server stack, web server tuning, code deploying, hosting options and much much more. Youtube Channel : http://www.youtube.com/user/OurPHPIndonesia Twitter : @php_indonesia NOTE: Rules for Wall posting: https://www.facebook.com/groups/35688476100/doc/10151597056316101/ Daftar Keanggotaan : http://www.facebook.com/groups/35688476100/doc/10150671770741101/ 
Manage your social media

Best social media tool for image publishing to Facebook and Twitter. Look amazing and delight your followers. Get 40% off when you sign up today.
From our sponsors
bkin fungsi filterisasi supaya g blh ad badword gm...
Sep 19th 2013, 17:17, by Adhie Purwa Sasmita

Adhie Purwa Sasmita 5:17pm Sep 19
bkin fungsi filterisasi supaya g blh ad badword gmn y?

udah coba sperti ini :

<?php
$teks = strip_tags($_POST['teks']);
$bad=array("sex","xxx","fuck","asu");
$result="clear";
for($i=0;$i<=count($bad)-1;$i++){
if(!(strpos($teks,$bad[$i])==false))
{$result="bad word detected";
break;}
}
if($result=='clear')
echo $result;
else
echo "detected";
?>

tapi msih tembus kalo kata badword'a d gbung dgn krkter yg lain kyk : assu, fucking dll

maaf agak ksar bhasa'a.

Titus Wiguno 5:26pm Sep 19
solusinya ya tambahkan kata2 itu tadi ke dalam daftar blacklist. memang bakal panjang, tapi ya begitulah caranya.

Wahyu Kristianto 5:32pm Sep 19
Ga jadi post tadi.. Salah maksud ^_^

Adhie Purwa Sasmita 5:33pm Sep 19
yaah kyk'a td powerfull tuh

You are receiving this email because you subscribed to this feed at blogtrottr.com.

If you no longer wish to receive these emails, you can unsubscribe from this feed, or manage all your subscriptions

Tidak ada komentar:

Posting Komentar