01-01-2008, 02:19 PM
|
#3 (permalink)
|
|
The Addict
Join Date: Dec 2007
Location: morocco
Posts: 221
Thanks: 19
|
Quote:
Originally Posted by Alan @ CIT
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:1) in 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:1) in 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:1) in C:\wamp\www\news\log2.php on line 17
and i think the config.php is fine
|
|
|