NamePros
Welcome, Guest! Ready to make a name for yourself in the domain business? We welcome both the hobbyist and professional domainer to join the discussion as part of the NamePros community.

Click here to create your profile to start earning reputation for posting, and trader ratings for buying & selling in our free e-marketplace. Build your trader rating with each successful sale. Our system has tracked over 100,000 sales and counting!
FAQ & TOS Register Search Today's Posts Mark Forums Read

Go Back   NamePros.com > Website Development Discussion Forums > Programming
Reload this Page PHP Error Message

Programming PHP, Perl, Ruby on Rails, AJAX, HTML, XHTML, CSS, JavaScript, MySQL and any other coding topics.

Advanced Search


Closed Thread
 
LinkBack Thread Tools
Old 08-23-2007, 09:07 PM THREAD STARTER               #1 (permalink)
NamePros Regular
 
a1nerd's Avatar
Join Date: Apr 2004
Posts: 548
a1nerd is on a distinguished road
 



PHP Error Message


How do i fix this?

Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/sddave23/public_html/avs/vtr.php:1) in /home/sddave23/public_html/avs/config.php on line 2

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/sddave23/public_html/avs/vtr.php:1) in /home/sddave23/public_html/avs/config.php on line 2

You can see the warning message at the top of this page
????: NamePros.com http://www.namepros.com/programming/365635-php-error-message.html
http://www.createseo.com/avs/vtr.php

It's on top of all pages containing PHP.

Here is the config.php file bellow

PHP Code:
<?php
session_start
();
define("DB_HOST"            "localhost");
define("DB_NAME"            "sddave23_avs");
define("DB_USERNAME"        "sddave23_avs");
define("DB_PASSWORD"        "123456");
define("CONTACT_EMAIL"        "info@cotonalba.co.uk");

$conn mysql_connect(DB_HOSTDB_USERNAMEDB_PASSWORD);
mysql_select_db(DB_NAME$conn);
?>
a1nerd is offline  
Old 08-23-2007, 10:45 PM   #2 (permalink)
cef
NamePros Regular
Join Date: May 2004
Location: NYC
Posts: 236
cef is a jewel in the roughcef is a jewel in the roughcef is a jewel in the rough
 


Animal Rescue
Are you echoing any php output or displaying any html output before the point at which you include config.php in vtr.php?

That's usually the cause of this problem.
cef is offline  
Old 08-24-2007, 12:04 AM THREAD STARTER               #3 (permalink)
NamePros Regular
 
a1nerd's Avatar
Join Date: Apr 2004
Posts: 548
a1nerd is on a distinguished road
 



I have no idea, i dont know php.

Originally Posted by cef
Are you echoing any php output or displaying any html output before the point at which you include config.php in vtr.php?

That's usually the cause of this problem.
a1nerd is offline  
Old 08-24-2007, 01:31 AM   #4 (permalink)
Senior Member
 
Xyzer's Avatar
Join Date: Aug 2005
Location: United Kindom
Posts: 1,502
Xyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to allXyzer is a name known to all
 


Tsunami Relief AIDS/HIV
It's something in: http://www.createseo.com/avs/vtr.php
Can you please paste that files code and we can fix it for you...
Xyzer is offline  
Old 08-24-2007, 03:27 AM   #5 (permalink)
Joe
Senior Member
Join Date: Oct 2005
Location: Kent ~ U.K.
Posts: 3,209
Joe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud ofJoe has much to be proud of
 


Save The Children Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009 Help The Homeless - Holiday 2009
Here a few things to check:
  • You are not including a page which has already got session_start() in it, when you have declared session_start() in the actual page
  • You are including a page with session_start() at the VERY TOP of your page, before anything else
Hope this is of some help,
Joe
__________________
Myself and "JackHeskett" are no longer associated with FusedHosting.net. Please pipe all PMs to admin [at] fusedhosting.net.
Joe is offline  
Old 08-24-2007, 04:58 AM   #6 (permalink)
Senior Member
 
Hitch's Avatar
Join Date: Aug 2005
Location: Uk, South Yorkshire
Posts: 1,225
Hitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to beholdHitch is a splendid one to behold
 


Winner
PHP Programming - May 2007
Animal Rescue Third World Education Find Marrow Donors!
Try this,

PHP Code:
  <?php

ob_start
();
????: NamePros.com http://www.namepros.com/showthread.php?t=365635

session_start();
define("DB_HOST"            "localhost");
define("DB_NAME"            "sddave23_avs");
define("DB_USERNAME"        "sddave23_avs");
define("DB_PASSWORD"        "123456");
define("CONTACT_EMAIL"        "info@cotonalba.co.uk");

$conn mysql_connect(DB_HOSTDB_USERNAMEDB_PASSWORD);
mysql_select_db(DB_NAME$conn);
?>
__________________
Cueburst - Support System - FAQ Knowledge Base, Tickets and more.
Hitch is offline  
Closed Thread


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools


Liquid Web Smart Servers  
All times are GMT -7. The time now is 05:12 PM.

Managed Web Hosting by Liquid Web
Domain name forum recommended by Domaining.com Powered by: vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.6.0 Ad Management plugin by RedTyger