This topic is locked

List Page as an Include?

11/19/2007 10:40:27 AM
PHPRunner General questions
powersitedesign author

I have a project where I am trying to use a PHPR generated list page as an include. Here is the test page: http://www.greersferrylake.org/cms/test.php

(the include is located at the bottom of the page under Recent News and Information).
When I set this up as an include I am getting the following errors kick up no matter what I try, anyone have any suggestions for me?
[indent]Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7) in /var/www/vhosts/greersferrylake.org/httpdocs/cms/news_releases_list.php on line 4
Warning: session_start(): Cannot send session cache limiter - headers already sent (output started at /var/www/vhosts/greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7) in /var/www/vhosts/greersferrylake.org/httpdocs/cms/include/dbcommon.php'>greersferrylake.org/httpdocs/cms/include/dbcommon.php on line 4
Warning: Cannot modify header information - headers already sent by (output started at /var/www/vhosts/greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7'>greersferrylake.org/httpdocs/cms/test.php:7) in /var/www/vhosts/greersferrylake.org/httpdocs/cms/include/dbcommon.php'>greersferrylake.org/httpdocs/cms/include/dbcommon.php on line 17[/indent]
To include the list page (http://www.greersferrylake.org/cms/news_releases_list.php) this is the code that I am using to call it in:
[codebox]<?php include("news_releases_list.php"); ?>[/codebox]

Sergey Kornilov admin 11/19/2007

Cannot tell you if this possible or not.
You can start by removing the following two lines from the beginning of include/dbcommon.php file.

session_cache_limiter("none");

session_start();


Also remove the following line from news_releases_list.php

header("Expires: Thu, 01 Jan 1970 00:00:01 GMT");