Thread: php question
View Single Post
Old 09-11-2003, 11:38 PM  
jwerd
Confirmed User
 
Industry Role:
Join Date: Jun 2003
Location: Costa Rica
Posts: 1,953
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
jwerd is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote