fgets find string help please

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi all
 
I would like to find a string say “hello” from the result of my
fsockopen result.
 
I have searched all over for an answer but to no avail so I hand it over
to you clever people here.
 
The kind of result I want is if string excists the $result = 0 else
$result = 1
 
I can carry on from there….
 
while(!feof($socket)) {
       echo fgets($socket,128);
      }
      fclose($socket);
 
$socket is working and echoing a result.
 
Any help is very much appreciated
 
Dave Carrera

---
Outgoing mail is certified Virus Free.
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.449 / Virus Database: 251 - Release Date: 27/01/2003
 

[Index of Archives]     [PHP Home]     [PHP Users]     [Postgresql Discussion]     [Kernel Newbies]     [Postgresql]     [Yosemite News]

  Powered by Linux