note 107093 rejected from function.fgets by danbrown
| From: | danbrown@php.net | Date: | Fri, 06 Jan 2012 19:11:11 +0000 |
| Subject: | note 107093 rejected from function.fgets by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-185404@lists.php.net to get a copy of this message | ||
Note Submitter: francites at yahoo dot it
----
Hi, I have a problem...
tis is the code
<?php
$fp = fopen("text.txt","r+");
while ($a = fgets($fp,255)){
if ( == "abc")
echo $a."<br/>";
}
fclose($fp);
?>
the result is nothing also when th text in line is abc...
what's wrong?