note 126423 added to function.file-get-contents

From: Date: Tue, 14 Sep 2021 03:22:30 +0000
Subject: note 126423 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-216957@lists.php.net to get a copy of this message
//从指定位置获取指定长度的文件内容 function file_start_length($path,$start=0,$length=null){ if(!file_exists($path)) return false; $size=filesize($path); if($start<0) $start+=$size; if($length===null) $length=$size-$start; return file_get_contents($path, false, null, $start, $length ); } ---- Server IP: 45.112.84.4 Probable Submitter: 45.112.85.242 (proxied: 125.70.30.71) ---- Manual Page -- https://php.net/manual/en/function.file-get-contents.php Edit -- https://main.php.net/note/edit/126423 Del: integrated -- https://main.php.net/note/delete/126423/integrated Del: useless -- https://main.php.net/note/delete/126423/useless Del: bad code -- https://main.php.net/note/delete/126423/bad+code Del: spam -- https://main.php.net/note/delete/126423/spam Del: non-english -- https://main.php.net/note/delete/126423/non-english Del: in docs -- https://main.php.net/note/delete/126423/in+docs Del: other reasons-- https://main.php.net/note/delete/126423 Reject -- https://main.php.net/note/reject/126423 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216957) next »