The script I'm working on is designed to be translated, so I created a basic language file, and all text messages are read from it as per this very basic function:
PHP Code:
function ln_lang() {
global $Site;
$langfile = 'lang.'.$Site['Lang'];
$txt = file($langfile); return $txt;
};
It's supposed to read the entire file into an array, so that a message can be echoed simply by including $txt[n].
When I created all of this on my Linux box, it worked fine. But now that I've reformatted with Windows, there's something wrong. Changes to the language file don't reflect in the script - not when I add new lines, or delete the existing ones.
I get the feeling that PHP is caching the file somewhere, so I was wondering how to get rid of that caching. And if it's not possible, if there's a simplistic workaround?
~ Wogan
__________________
Please login or register to view this content. Registration is FREE <- Look! A blog!
|