Blogger Information
Blog 250
fans 3
comment 0
visits 321757
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
文件指针:ftell() | fewind()
梁凯达的博客
Original
1127 people have browsed it

<?php
 //ftell()
 //ftell()函数用于返回当前的指针位置

 $handle = fopen('./wangru','r');
 echo ftell($handle);
 echo '<hr />';
 echo fread($handle,filesize('./wangru'));
 echo '<hr />';
 echo ftell($handle);
 echo '<hr />';
 //重置指针的位置
 rewind($handle);
 echo ftell($handle);

Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post