note 101940 added to function.file-get-contents
| From: | fx4084 at gmail dot com | Date: | Wed, 19 Jan 2011 14:23:47 +0000 |
| Subject: | note 101940 added to function.file-get-contents | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-175891@lists.php.net to get a copy of this message | ||
file_get_contents ( string filename [, bool use_include_path [, resource context [, int offset [,
int maxlen]]]] )
I user this function like:
$fp = file_get_contents("http://www.example.com",0,NULL,3322,1024);
But, run this programe I get two warningï¼
Warning: file_get_contents() [function.file-get-contents]: stream does not support seeking in
H:\htdocs\afx\media\games\index.php on line 5
Warning: file_get_contents() [function.file-get-contents]: Failed to seek to position 3322 in the
stream in H:\htdocs\afx\media\games\index.php on line 5
I try it, The fourth parameter must less than 3322, why? Someone can tell me?
----
Server IP: 92.48.74.199
Probable Submitter: 124.200.53.57
----
Manual Page -- http://www.php.net/manual/en/function.file-get-contents.php
Edit -- https://master.php.net/note/edit/101940
Del: integrated -- https://master.php.net/note/delete/101940/integrated
Del: useless -- https://master.php.net/note/delete/101940/useless
Del: bad code -- https://master.php.net/note/delete/101940/bad+code
Del: spam -- https://master.php.net/note/delete/101940/spam
Del: non-english -- https://master.php.net/note/delete/101940/non-english
Del: in docs -- https://master.php.net/note/delete/101940/in+docs
Del: other reasons-- https://master.php.net/note/delete/101940
Reject -- https://master.php.net/note/reject/101940
Search -- https://master.php.net/manage/user-notes.php