[PHP-DEV] Bug #1063 Updated: when I tried to do an ftell on a valid file pointer it said it was a not valid. From: Bug Database (php-dev <email protected>)
Date: 02/21/99

ID: 1063
Updated by: jim
Reported By: babak77 <email protected>
Status: Analyzed
Bug Type: Misbehaving function
Assigned To:
Comments:

This worked fine for me:

<?php
$fp = fopen("test", "r");
$line = fgets($fp, 1024);
echo $line, ":";
echo ftell($fp);
?>

Are you sure that you're passing the correct file pointer?

Full Bug description available at: http://ca.php.net/bugs.php3?id=1063

--
PHP Development Mailing List   http://www.php.net/
To unsubscribe send an empty message to php-dev-unsubscribe <email protected>
For help: php-dev-help <email protected>