1

I am trying to insert a form script into my home page index.php by using the following line of code.

<?php include('email-system/index.php'); ?> 

and continue to get the two error messages below. The form shows up, but I get this error below quite often when trying to insert script into my home page using the include statement. I have read in a number of different places that it could be white space. Since the file works fine if you go to www.mysite.com/email-system/index.php I'm assuming that it's not white space. Any ideas on what my problem is and how I could insert the code and correct the errors? Thank you in advance.

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/content/84/8661784/html/header.php:7) in /home/content/84/8661784/html/email-system/index.php on line 6

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/content/84/8661784/html/header.php:7) in /home/content/84/8661784/html/email-system/index.php on line 6

1 Answers1

1

You will only get that if you are echoing output before the include statement. Make sure whatever you need is included / loaded before you send output to the user.

Jakub
  • 20,418
  • 8
  • 65
  • 92