Forum Moderators: coopster
I know someone who has a PHP script set up on his server. The language file is as such:
$lang['msg1'] = "whatever";
$lang['msg2'] = "whatever";
etc
Now when he accesses any file in his browser on his own computer, where the language should appear, he see`s a A. I would imagine this is because the language file is using an array construct.
When I access the same script on his server in my OWN browsers on my OWN computer, I see everything fine. Strange.
Does anyone know what causes this?
Could you have your friend view source, and say what the output is around these A's? And maybe ask your friend which script it is, and if there's any chance it's leaving cookies, swiping cookies etc. , also any chance it's doing special stuff on the basis of http-accept headers.
If this doesn't work, you could at the end of the script run:
print_r(get_included_files());
and compare outputs.
Actually, the script was written by myself. Its the first time anyone has had any problems with it. He has uploaded the files in ASCII mode, so I have told him to reupload the 'lang' directory in binary to see what happens.
The problem is when he views it in any browser on his comp. On my own comp and on two friends comps I see everything ok. I`ll ask him what his source code is displaying.