note 45072 deleted from function.count by aidan

From: Date: Thu, 26 Aug 2004 23:15:36 +0000
Subject: note 45072 deleted from function.count by aidan
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-75383@lists.php.net to get a copy of this message
Note Submitter: ron at clicks2hits dot com Actionpro ---- Why use array() when using count(). <? $countit = count($t1=file('test.txt')) + count($t2=file('test1.txt')) + count($t3=file('test2.txt')); $i = 0; while ($i < $countit){ $i = 0 + $count++; if ($this == $t1[$i]) { $blocked ="Your e-Mail $this is banned from $sitename"; ?> <script> window.location=("banned.php?blocked=<?php echo $blocked; ?>") </script> <? exit(); } if ($that == $t2[$i]) { $blocked ="The word $that is banned from posting at $sitename"; ?> <script> window.location=("banned.php?blocked=<?php echo $blocked; ?>") </script> <? exit(); } if ($andthis == $t3[$i]) { $blocked ="IP $andthis is banned from $sitename"; ?> <script> window.location=("banned.php?blocked=<?php echo $blocked; ?>") </script> <? exit(); } } ?>

« previous php.notes (#75383) next »