PHP ftell() Function
Complete PHP Filesystem Reference Manual
Definition and Usage
The ftell() function returns the current position in an open file.
Returns the current position of the file pointer, or FALSE on failure.
Syntax
ftell(file)
| Parameters | Description |
|---|---|
| file | Required. Specifies the open file to check. |
Example
" . ftell($file); fclose($file); ?>The code above will output:
0
15
Complete PHP Filesystem Reference Manual