The leading whitespace that Notepad inserts causes PHP to echo out that
whitespace before any PHP processing has occurred. Basically this (note
leading space):
<?php
Is the same as this:
<?php echo(' ');
Then, since the page output has already started, it's too late to perform
any tasks that require HTTP headers such as setting cookies or establishing
a session.
Also, Notepad will not display this leading whitespace that it adds, so to
see it you'll need to use a better text editor. For editing PHP files on
Windows, I use Notepad++ (a popular open-source text editor for windows).
http://notepad-plus.sourceforge.net/uk/site.htm
On 2/6/07, Rob Church <robchur(a)gmail.com> wrote:
On 06/02/07, David Gerard <dgerard(a)gmail.com> wrote:
I suppose getting MediaWiki to automagically
clean these out is a
locked-room problem ...
I'm not 100% sure on it, but I think the problem is that PHP dies on a
lower level, at least when parsing the file. Having MediaWiki mess
about with people's LocalSettings.php files is *possibly* a dodgy
cobbled street, especially when the software relies upon that file to
initialise itself.
Rob Church
_______________________________________________
MediaWiki-l mailing list
MediaWiki-l(a)lists.wikimedia.org
http://lists.wikimedia.org/mailman/listinfo/mediawiki-l