|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2006-03-26 19:13 UTC] iliaa@php.net
[2006-08-04 08:14 UTC] fcicqbbs at gmail dot com
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Fri Oct 24 12:00:01 2025 UTC |
Description: ------------ readfile() problem(stream used) stream functions do not support HTTP 1.1 206 Partial Content. Reproduce code: --------------- $context=array('http' => array ('header'=> 'Range: bytes=1024-', ),); $xcontext = stream_context_create($context); readfile('http://localhost/1.mp3',0,$xcontext); //the file is exist,if I don't use $xcontext,the code works well. Expected result: ---------------- I want to get the Partial Content from 1024 byte to the end of the file It says: [function.readfile]: failed to open stream: HTTP request failed! HTTP/1.1 206 Partial Content