note 71975 added to function.fseek
| From: | jim? at osu1 dot php dot net | Date: | Wed, 27 Dec 2006 10:31:02 +0000 |
| Subject: | note 71975 added to function.fseek | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-120944@lists.php.net to get a copy of this message | ||
hello found out what was wrong : )
function getbyte(){
global $file;
$tmp=fread($file,1);
fseek($file,0,SEEK_CUR); //NOT fseek($file,1,SEEK_CUR);
return $tmp;
}
you can tell i need sleep
1 tells it move two
0 tells it move one
hope this helps...
----
Server IP: 66.163.161.117
Probable Submitter: 74.114.163.2
----
Manual Page -- http://www.php.net/manual/en/function.fseek.php
Edit -- https://master.php.net/note/edit/71975
Del: integrated -- https://master.php.net/note/delete/71975/integrated
Del: useless -- https://master.php.net/note/delete/71975/useless
Del: bad code -- https://master.php.net/note/delete/71975/bad+code
Del: spam -- https://master.php.net/note/delete/71975/spam
Del: non-english -- https://master.php.net/note/delete/71975/non-english
Del: in docs -- https://master.php.net/note/delete/71975/in+docs
Del: other reasons-- https://master.php.net/note/delete/71975
Reject -- https://master.php.net/note/reject/71975
Search -- https://master.php.net/manage/user-notes.php