RSS Header error
-
Ok I am running a tradescript that requires me to place some code in the root index.php (between head tags)
————————-
so now it looks like this:
—————————
<?php
putenv ( “REMOTE_ADDR=”.$HTTP_SERVER_VARS[“REMOTE_ADDR”] ) ;
if( $HTTP_SERVER_VARS[“HTTP_REFERER”] ) {
putenv ( “HTTP_REFERER=”.$HTTP_SERVER_VARS[“HTTP_REFERER”] ) ;
} else { putenv(“HTTP_REFERER=noref”); }
PassThru(“./cgi-bin/top/protect/topref.cgi”);
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
?>
——————-
problem now is i get an error when I follow my RSS link, i get this error:
————————
Warning: Cannot modify header information – headers already sent by (output started at /web/sites/user/mydomain.com/index.php:6) in /web/sites/user/mydomain.com/wp-rss2.php on line 8
————————-now if I switch to
———————-
<?php
/* Short and sweet */
define(‘WP_USE_THEMES’, true);
require(‘./wp-blog-header.php’);
putenv ( “REMOTE_ADDR=”.$HTTP_SERVER_VARS[“REMOTE_ADDR”] ) ;
if( $HTTP_SERVER_VARS[“HTTP_REFERER”] ) {
putenv ( “HTTP_REFERER=”.$HTTP_SERVER_VARS[“HTTP_REFERER”] ) ;
} else { putenv(“HTTP_REFERER=noref”); }
PassThru(“./cgi-bin/top/protect/topref.cgi”);
?>
——————————–
My RSS Feed works but my script isnt recording correctly at all
Anyone have any ideas how I can satisfy both php calls on my index page, I am not a good coder
thanks so much
The topic ‘RSS Header error’ is closed to new replies.