note 126404 deleted from function.file-get-contents by cmb
| From: | cmb@php.net | Date: | Thu, 09 Sep 2021 10:06:41 +0000 |
| Subject: | note 126404 deleted from function.file-get-contents by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-216936@lists.php.net to get a copy of this message | ||
Note Submitter: 453034559 at qq dot com
----
//仿å®å¤§å°è·åæå®é¿åº¦çæä»¶å
容
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 );
}