Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2006-12-15 11:56:43

dewever
New Member
Registered: 2006-12-15
Posts: 1

PHP include not working; 'Cannot modify header information'

Dear fellow Textpattern-fanatics!

I want to include my TP-blog in another page, using the PHP include-tag. When I tried to do that at a test page I made (at http://www.robindewever.nl/tperin.php), I got the following error message:

Warning: Cannot modify header information – headers already sent by (output started at /customers/robindewever.nl/robindewever.nl/httpd.www/tperin.php:9) in /customers/robindewever.nl/robindewever.nl/httpd.www/textpattern/index.php on line 27
config.php is missing or corrupt. To install Textpattern, visit textpattern/setup/

The include refers to http://www.robindewever.nl/textpattern/index.php.

Does anyone know what I’ve done wrong? Is it in config.php? or index.php? or maybe in the ‘header information’?

Thank you in advance!

Offline

#2 2006-12-15 12:17:47

Sencer
Archived Developer
From: cgn, de
Registered: 2004-03-23
Posts: 1,803
Website

Re: PHP include not working; 'Cannot modify header information'

I want to include my TP-blog in another page, using the PHP include-tag.

That’s not how textpattern works.

http://textpattern.com/faq/65/how-do-i-embed-textpattern-in-an-external-page

Offline

#3 2006-12-15 14:43:46

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,350
Website GitHub Mastodon Twitter

Re: PHP include not working; 'Cannot modify header information'

What you could do is include the feeds in another page through a feed parser. Try simplepie or feed2js


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

Board footer

Powered by FluxBB