|
Well, I'd do this a little differently:
<?php
//Something.txt will contain something needed in the search//
$fp = @fopen("something.txt", "r");
while($buffer = fread($fp, 1024))
{
if(strstr($buffer, "something"))
{
echo " I found something, $buffer! ";
} else {
die()
}
again, I am kind of tired so I am not sure if this will work because I haven't tested it - have no way of testing it - and again, I am sleepy... but if that is something that will help you, USE IT!
Peace
__________________
Yii Framework Guru - Seasoned PHP vet - Partner @ XXXCoupon.com
|