SitePoint Sponsor |
|
User Tag List
Results 1 to 5 of 5
Thread: Please help if you can
-
Feb 24, 2006, 19:29 #1
- Join Date
- Nov 2005
- Posts
- 9
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Please help if you can
I'm getting this error and do not know how to fix, any help would be great!
------
Warning: Cannot modify header information - headers already sent by (output started at /home2/yourfm/public_html/station/make_header.php:11) in /home2/yourfm/public_html/station/disp_users.php on line 135
------
Many thanks
-
Feb 24, 2006, 20:27 #2
- Join Date
- Feb 2004
- Location
- Tampa, FL (US)
- Posts
- 9,854
- Mentioned
- 1 Post(s)
- Tagged
- 0 Thread(s)
this is a php error, not a mysql error
-
Feb 24, 2006, 21:03 #3
- Join Date
- Dec 2005
- Posts
- 184
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
Originally Posted by your.fm
Headers can be sent out by PHP functions including header(), setcookie(), session_start() and probably others.
The way to fix it is to not do this. Send out all your headers BEFORE any text. Make sure all the above stuff is done before your very first line of HTML is output. You can use the output buffering functions (ob_start() et al) to help in this area.
-
Feb 26, 2006, 12:24 #4
- Join Date
- Feb 2006
- Location
- Istanbul
- Posts
- 26
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
As mentioned above, you can use output buffering:
Code:ob_start(); mail( $yourEmail, "Thank you", $message, "From: $myEmail" ); header("Location: nextpage.php"); ob_end_flush();
-
Feb 26, 2006, 12:56 #5
- Join Date
- Apr 2005
- Location
- Cheshire, England
- Posts
- 28
- Mentioned
- 0 Post(s)
- Tagged
- 0 Thread(s)
also make sures theres no whitespace before the open php thingy (<?php). That causes this error as well.
Bookmarks