View Single Post
  #46 (permalink)  
Old 04-22-2008, 05:46 AM
Jeyaseelansarc Jeyaseelansarc is offline
D-Web Genius
 
Join Date: Mar 2007
Location: Chennai
Posts: 1,162
Jeyaseelansarc is on a distinguished road
Send a message via AIM to Jeyaseelansarc
Default Re: Filesystem Object in PHP

ftell() Returns the position of the file pointer referenced by handle; i.e., its offset into the file stream.

For e.g
PHP Code:
<?php

// opens a file and read some data
$fp fopen("/etc/passwd""r");
$data fgets($fp12);

// where are we ?
echo ftell($fp); // 11

fclose($fp);

?>
__________________
With,
J. Jeyaseelan

Everything Possible
Reply With Quote