|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2011-01-26 20:05 UTC] cataphract@php.net
-Status: Open
+Status: Duplicate
[2011-01-26 20:05 UTC] cataphract@php.net
[2011-01-26 20:27 UTC] cataphract@php.net
-Status: Duplicate
+Status: Open
[2011-01-26 20:27 UTC] cataphract@php.net
[2011-01-26 21:38 UTC] philip@php.net
[2011-01-26 21:39 UTC] philip@php.net
-Status: Open
+Status: Closed
-Assigned To:
+Assigned To: philip
[2011-01-26 21:39 UTC] philip@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Dec 17 07:00:01 2025 UTC |
Description: ------------ 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? Test script: --------------- <?php //Example $url = 'http://www.php.net'; $fp = file_get_contents($url,0,null,3321,1024); //No Warning. $fp = file_get_contents($url,0,null,3322,1024); //Warning!! Just difference between 3322 and 3321 //I need to be a greater number. How can I do? ?>