ID: 9617
Updated by: dbeu
Old-Status: Open
Status: Closed
Bug Type: Filesystem function related
Assigned To: 

following script works okay for me (win2k) so closing.

$output = fopen("test.txt", "a+");
echo "bytes written: ", fputs($output, "test"), "\n<br>file offset: ". ftell($output);

Previous Comments:

[2001-03-08 06:02:20] [EMAIL PROTECTED]
Open an existing text file (insert some crap before) like:

$output = fopen("test.txt", "a"); #we want append something

Here is the problem:

$position = ftell($output); #returns always 0 and not the real fileposition!!!

fputs($output, "test"); #but this works without any problems (it has the real 
fileposition, but ftell gets the false one)

I found this bug only on windows systems, not on linux.



ATTENTION! Do NOT reply to this email!
To reply, use the web interface found at

PHP Development Mailing List <>
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to