[pmwiki-users] pmwiki.php is downloaded

Patrick R. Michaud pmichaud at pobox.com
Mon Feb 5 19:41:30 CST 2007


On Mon, Feb 05, 2007 at 09:38:55PM +0100, Borkenkaefer wrote:
> hello
> 
> > How about the following for index.php?
> > 
> >     <?php
> >       echo "including pmwiki.php\n";
> >       include_once('pmwiki.php');
> > 
> such an index.php gives following error by looking up
> http://www.axalphuesli.ch/wiki/:
> 
> including pmwiki.php
> Warning: Cannot modify header information - headers already sent by
> (output started
> at /home/httpd/vhosts/axalphuesli.ch/httpdocs/wiki/index.php:2)
> in /home/httpd/vhosts/axalphuesli.ch/httpdocs/wiki/pmwiki.php on line
> 885

The "echo" line in the index.php script makes it impossible for
PmWiki to send any HTTP headers, and PHP is warning you about that.
Remove the "echo" statement before including pmwiki.php and the
warning will go away.  :-)

Pm



More information about the pmwiki-users mailing list