Forum Moderators: coopster
Warning: Cannot send session cookie - headers already sent by (output started at /web/Wes/firestorm/clients/sktech/Connections/sktech.php:9) in /web/Wes/firestorm/clients/sktech/dbedit/login.php on line 4
Warning: Cannot send session cache limiter - headers already sent (output started at /web/Wes/firestorm/clients/sktech/Connections/sktech.php:9) in /web/Wes/firestorm/clients/sktech/dbedit/login.php on line 4
Can anyone explain this error to me?
Thanks :)
Basically something is writing to the page before the session_start() command - which is not allowed.
It looks like you have a session_start command at line 4 of login.php, but something is writing to the page before this at sktech.php line 9 (i.e. an echo(), print_r(), etc.)
You can cure this by making sure nothing writes to the page before the session_start(). I hope this makes sense!
The other problem is after you login and it takes you to the main page, it gives this error:
Warning: mysql_select_db(): supplied argument is not a valid MySQL-Link resource in /web/Wes/firestorm/clients/sktech/dbedit/login.php on line 17
Warning: mysql_query(): supplied argument is not a valid MySQL-Link resource in /web/Wes/firestorm/clients/sktech/dbedit/login.php on line 18
Can you make any sense of this one :)
I can supply the code on line 17 & 18 if you need it.
<?php require_once('../Connections/sktech.php');?> Look at line 9 of sktech.php - does it have any commands that write to the page? Does it seem to be a blank line? As bcolflesh says, there could be an invisible character there. If line 9 is blank, just remove it.