WordPress.org

Ready to get started?Download WordPress

Forums

RSS2 and PHP problem (3 posts)

  1. Geoffrey Sneddon
    Member
    Posted 10 years ago #

    With
    <?PHP include('news/wp-rss2.php'); ?>
    It produces
    <pre>Warning: Cannot modify header information - headers already sent by (output started at /home/geoffers/public_html/f1unleashed/templates/header.php:10) in /home/geoffers/public_html/f1unleashed/news/wp-rss2.php on line 4
    http://f1unleashed.geoffers.uni.cc/news/index.php F1 Unleashed News en Copyright 2004 Thu, 18 Mar 2004 21:11:24 +0000 http://wordpress.org/?v=1.0.1 http://f1unleashed.geoffers.uni.cc/news/index.php?p=3 http://f1unleashed.geoffers.uni.cc/news/index.php?p=3#comments Wed, 17 Mar 2004 10:37:00 -0800 geoffers (mailto:geoffers@geoffers.uni.cc) 2004 3@http://f1unleashed.geoffers.uni.cc/news/index.php 1. Michael Schumacher 2. Rubens Barricello 3. Fernando Alonso 4. Ralf Schumacher 5. Juan Montoya 6. Jenson Button 7. Jarno Trulli 8. David Coulthard</pre>
    before what it is suppost to show and
    <pre>]]></pre>after, how do I get rid of this.

  2. Ryan Boren
    WordPress Dev
    Posted 10 years ago #

    Don't include header.php. Since header.php sends out headers, wp-rss2 will gripe that headers have already been sent when it tries to send out the Content-type header.

  3. Geoffrey Sneddon
    Member
    Posted 10 years ago #

    ok, but I need what's in header.php at the top

Topic Closed

This topic has been closed to new replies.

About this Topic

Tags

No tags yet.