Hey all,
I have a version of a PHP/MySQL Doc Management tool working perfectly on my local server that I got from http://karlcore.com/programming/index.php
Now I am trying to move it to a remote server (live). I have changed all the appropriate MySQL server details etc, and uploaded the identical database.sql file
When I try to login to the first page I get this:
Warning: session_register(): Cannot send session cookie - headers already sent by (output started at /home/fhlinux205/s/soil.me.uk/user/htdocs/dms/lib/session.inc:154) in /home/fhlinux205/s/soil.me.uk/user/htdocs/dms/login.php on line 113
Warning: session_register(): Cannot send session cache limiter - headers already sent (output started at /home/fhlinux205/s/soil.me.uk/user/htdocs/dms/lib/session.inc:154) in /home/fhlinux205/s/soil.me.uk/user/htdocs/dms/login.php on line 113
Warning: Cannot modify header information - headers already sent by (output started at /home/fhlinux205/s/soil.me.uk/user/htdocs/dms/lib/session.inc:154) in /home/fhlinux205/s/soil.me.uk/user/htdocs/dms/login.php on line 121
Here's a sample from the inc file I think it's choking on:
108
109 function sess_destroy ($sid) {
110
111 $sid = addslashes($sid);
112
113 $retval = mysql_query("DELETE FROM session WHERE id='$sid'") or die(mysql_error());
114
115 return $retval;
116
117 }
118
119
120
121 function sess_gc ($maxlifetime = 3600) {
122
123 $gone = time() - $maxlifetime;
124
125 $retval = mysql_query("DELETE FROM session WHERE active<$gone") or die(mysql_error());
126
127 return $retval;
128
129 }
130
131
I am lost guys coz I'm green. Can anyone pleeez help me out ?
Thank you. You are gods. ;-)
tim0fee