View Single Post
Old 01-01-2008, 02:19 PM   #3 (permalink)
webtuto
The Addict
 
webtuto's Avatar
 
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
webtuto is on a distinguished road
Default

Quote:
Originally Posted by Alan @ CIT View Post
Hi,

This message means that your script has already output something before the cookie information is sent.

Often this is caused by a notice/warning that PHP is sending. Try putting:

PHP Code:
error_reporting(E_ALL); 
as the very first line of your script and see if PHP then shows the errors.

Also, check that config.php isn't sending any output (even a blank space/line) and make sure that "display_errors" is set to true in your php.ini (if you have access to it)

Alan
here is the error when i added error_reporting(E_ALL)

PHP Code:
Notice: Use of undefined constant id assumed 'id' in C:\wamp\www\news\log2.php on line 7

Notice
: Use of undefined constant user assumed 'user' in C:\wamp\www\news\log2.php on line 13

Notice
: Use of undefined constant pass assumed 'pass' in C:\wamp\www\news\log2.php on line 13

Warning
Cannot modify header information headers already sent by (output started at C:\wamp\www\news\log2.php:1in C:\wamp\www\news\log2.php on line 15

Warning
Cannot modify header information headers already sent by (output started at C:\wamp\www\news\log2.php:1in C:\wamp\www\news\log2.php on line 16

Warning
Cannot modify header information headers already sent by (output started at C:\wamp\www\news\log2.php:1in C:\wamp\www\news\log2.php on line 17 
and i think the config.php is fine
Send a message via MSN to webtuto Send a message via Yahoo to webtuto Send a message via Skype™ to webtuto
webtuto is offline  
Reply With Quote