FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » FUDforum Development » Bug Reports » PM:s get length=0
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: PM:s get length=0 [message #11751 is a reply to message #11749] Wed, 16 July 2003 14:28 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Which version of php4 are you using now and which version were you using beforfe?

I do see how your addition fixes the problem, you force php to go to the end of the file. However this operation should not be necessary since
<?php
fopen
("file", "ab");
?>

should place the file pointer at the end of the file.

Since this sort of an addition is not in 2.5.0 you can for now hold off upgrading while I investiage this issue further.

Meanwhile please try the following test script and let me know what are the results.
<?php
$fp
= fopen("test", "w");
fwrite($fp, str_repeat("abc", 1024));
fclose($fp);

$fp = fopen("test", "a");
echo
"Before fseek()\n";
var_dump(ftell($fp), filesize("test"));
fseek($fp, 0, SEEK_END);
echo
"After fseek()\n";
var_dump(ftell($fp), filesize("test"));
fclose($fp);
?>


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: Forum borked after rebuilding theme
Next Topic: Private msgs Online indicator fix
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sat Nov 23 03:20:34 GMT 2024

Total time taken to generate the page: 0.04164 seconds