note 126404 added to function.file-get-contents

From: Date: Thu, 09 Sep 2021 07:20:53 +0000
Subject: note 126404 added to function.file-get-contents
Groups: php.notes 
Request: Send a blank email to php-notes+get-216933@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.31.223) ---- Manual Page -- https://php.net/manual/en/function.file-get-contents.php Edit -- https://main.php.net/note/edit/126404 Del: integrated -- https://main.php.net/note/delete/126404/integrated Del: useless -- https://main.php.net/note/delete/126404/useless Del: bad code -- https://main.php.net/note/delete/126404/bad+code Del: spam -- https://main.php.net/note/delete/126404/spam Del: non-english -- https://main.php.net/note/delete/126404/non-english Del: in docs -- https://main.php.net/note/delete/126404/in+docs Del: other reasons-- https://main.php.net/note/delete/126404 Reject -- https://main.php.net/note/reject/126404 Search -- https://main.php.net/manage/user-notes.php

« previous php.notes (#216933) next »