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

Home » FUDforum » How To » Changing GLOBAL.php VAR_NAMES
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Changing GLOBAL.php VAR_NAMES [message #11162 is a reply to message #11152] Thu, 19 June 2003 22:35 Go to previous messageGo to previous message
Ilia is currently offline  Ilia   Canada
Messages: 13241
Registered: January 2002
Karma:
Senior Member
Administrator
Core Developer
Your text editor probably changed \n to \r\n, which would explain the size increase.

That is also the reason why the code gets stuck inside an infinite loop.
<?php
$e
= strpos($data, ".\n\n", $ke);
?>


looks for the end of the explanation for each option. Since your file's line endings are now \r\n, it cannot find this and sets $e to 0. Which what causes the ends loop. I'll add a check for value of $e in CVS, but that would simply prevent the loop. The solution is to make sure you GLOBALS_HELP does not have \r in it.


FUDforum Core Developer
[Message index]
 
Read Message
Read Message
Read Message
Previous Topic: Timeout units
Next Topic: How to allow users to delete their posts?
Goto Forum:
  

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

Current Time: Sat Nov 30 03:00:11 GMT 2024

Total time taken to generate the page: 0.04319 seconds