ちゅうい not all streams support seeking although the streams api will emulate a seek if whence is set to seek _ cur and offset is positive by calling php _ stream _ read to read and discard offset bytes 