problem with ftell()
Posted: Sat Sep 18, 2004 6:16 pm
i'm using php 4.3.5 on windows xp(+ local apache)
these lines are excuted each time user submits form:
(i want to append data)
i don't understand why but ftell() failes 
these lines are excuted each time user submits form:
(i want to append data)
Code: Select all
...
$fh=fopen("data.dat","r+b"); //open file for read/write
fseek($fh,0,SEEK_END); //move pointer to end of file for append
$pos=ftell($fh);
if($pos===false)
echo("ftell failed");
....