Does anyone know what causes these errors?
1.) Warning: Cannot send session cache limiter - headers already sent
(output started at /usr/local/pathname/functions.php:71) in
/usr/local/pathname/login.php on line 18
2.) Warning: Cannot add header information - headers already sent by (output started at /usr/local/pathname/functions.php:71) in /usr/local/pathname/login.php on line 28
I have an .inc file called functions.php that contains all the functions for the script. I also have a login.php and a config.php
Now if I take out the includes I do not receive and error?
Cannot send session cache limiter
Moderator: General Moderators
Cannot send session cache limiter
Last edited by saibot1 on Mon Dec 18, 2006 1:56 pm, edited 1 time in total.
- feyd
- Neighborhood Spidermoddy
- Posts: 31559
- Joined: Mon Mar 29, 2004 3:24 pm
- Location: Bothell, Washington, USA
Headers already sent errors have been talked about endlessly, so I'll assume you will search for the solution to those.
As for generating the ETag in the format you are looking, the following is a possible (untested) solution.
As for generating the ETag in the format you are looking, the following is a possible (untested) solution.
Code: Select all
$etag = md5(strtotime('last monday'));
$etag = substr($etag, 0, 6) . '-' . substr($etag, 6, 3) . '-' . substr($etag, 9, ;