Doc #53790 [NEW]: about "file_get_contents()"

From: Date: Wed, 19 Jan 2011 14:42:47 +0000
Subject: Doc #53790 [NEW]: about "file_get_contents()"
Groups: php.doc.bugs 
Request: Send a blank email to doc-bugs+get-5838@lists.php.net to get a copy of this message
From: Operating system: WIN7 PHP version: 5.2SVN-2011-01-19 (snap) Package: *General Issues Bug Type: Documentation Problem Bug description:about "file_get_contents()" 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? ?> -- Edit bug report at http://bugs.php.net/bug.php?id=53790&edit=1 -- Try a snapshot (PHP 5.2): http://bugs.php.net/fix.php?id=53790&r=trysnapshot52 Try a snapshot (PHP 5.3): http://bugs.php.net/fix.php?id=53790&r=trysnapshot53 Try a snapshot (trunk): http://bugs.php.net/fix.php?id=53790&r=trysnapshottrunk Fixed in SVN: http://bugs.php.net/fix.php?id=53790&r=fixed Fixed in SVN and need be documented: http://bugs.php.net/fix.php?id=53790&r=needdocs Fixed in release: http://bugs.php.net/fix.php?id=53790&r=alreadyfixed Need backtrace: http://bugs.php.net/fix.php?id=53790&r=needtrace Need Reproduce Script: http://bugs.php.net/fix.php?id=53790&r=needscript Try newer version: http://bugs.php.net/fix.php?id=53790&r=oldversion Not developer issue: http://bugs.php.net/fix.php?id=53790&r=support Expected behavior: http://bugs.php.net/fix.php?id=53790&r=notwrong Not enough info: http://bugs.php.net/fix.php?id=53790&r=notenoughinfo Submitted twice: http://bugs.php.net/fix.php?id=53790&r=submittedtwice register_globals: http://bugs.php.net/fix.php?id=53790&r=globals PHP 4 support discontinued: http://bugs.php.net/fix.php?id=53790&r=php4 Daylight Savings: http://bugs.php.net/fix.php?id=53790&r=dst IIS Stability: http://bugs.php.net/fix.php?id=53790&r=isapi Install GNU Sed: http://bugs.php.net/fix.php?id=53790&r=gnused Floating point limitations: http://bugs.php.net/fix.php?id=53790&r=float No Zend Extensions: http://bugs.php.net/fix.php?id=53790&r=nozend MySQL Configuration Error: http://bugs.php.net/fix.php?id=53790&r=mysqlcfg

« previous php.doc.bugs (#5838) next »