| | |
Warning: session_start() [function.session-start]: Cannot send session cache limiter
Please support our PHP advertiser: PostgreSQL or MySQL? Compare and contrast the two most popular open source databases
Thread Solved |
•
•
Join Date: Jan 2009
Posts: 17
Reputation:
Solved Threads: 0
Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#1 Jan 29th, 2009
Hello Guys!
I get this error when I try to run one of my php page but I do not get this error in other page which are basically same.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\go\birthday.php:1) in C:\xampp\htdocs\go\auth.php on line 2
I have tried like more then 20 hours but to no avail. So I hope you guys will shed some light in the problem.
I have trimmed down the code to make it easy to read.
With loads of Hope and Regards.
6pandn21
I get this error when I try to run one of my php page but I do not get this error in other page which are basically same.
Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at C:\xampp\htdocs\go\birthday.php:1) in C:\xampp\htdocs\go\auth.php on line 2
I have tried like more then 20 hours but to no avail. So I hope you guys will shed some light in the problem.
I have trimmed down the code to make it easy to read.
With loads of Hope and Regards.
6pandn21
PHP Syntax (Toggle Plain Text)
<?php include("connect.php"); include("auth.php"); <div class=\"entry\">"; function CalculateAge($BirthDate) {} $a= session username; $f= mysql_query("SELECT query"); $id= mysql_fetch_array($f); $b= $id['id']; $result = mysql_query("SELECT query"); while($uid = Fetch array from result) { $BirthDate= $uid['birthday']; echo div class=\"entry\">$uid[name]<br /></div>" .CalculateAge($BirthDate); } echo"</div>"; echo"<div style=\"clear: both;\"> </div></div>"; ?>
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#2 Jan 29th, 2009
•
•
Join Date: Oct 2008
Posts: 13
Reputation:
Solved Threads: 2
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#3 Jan 30th, 2009
•
•
Join Date: Jan 2009
Posts: 17
Reputation:
Solved Threads: 0
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#4 Jan 30th, 2009
•
•
•
•
Where exactly are you calling session_start()? And that error just means you have some sort of output (check for spaces, newlines before your <?php tags) before you have called session_start(). If you have to do this, consider output buffering.
Thank you very much for a very quick reply. Well yes the problem was output but I couldn't find it. I was using Notepad++ and there seemed to be nothing being outputted. Thank you death clock for the same suggestion. I then use NuSphere PhpEd and found out that there is a small - infront of <?php in the birthday. So all the time it was notepadd++ not working. Very disappointed with it now. Anyway Thank you very much for your help.
Kind Regards,
6pandn21
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#5 Jan 30th, 2009
•
•
Join Date: Jan 2009
Posts: 17
Reputation:
Solved Threads: 0
Re: Warning: session_start() [function.session-start]: Cannot send session cache limiter
0
#6 Jan 30th, 2009
![]() |
Similar Threads
- please tell me what is wrong with the code (PHP)
- Help me please. (PHP)
- help (PHP)
- Parse error: syntax error, unexpected $end (PHP)
- Small problem with plaincart php, cache limiter (PHP)
- Php Sessions (PHP)
- session variable error (PHP)
- help with oscommerce (eCommerce)
Other Threads in the PHP Forum
- Previous Thread: help with my scripot PLEASE!!! anyone?
- Next Thread: Hello Again Help with forms
| Thread Tools | Search this Thread |
# 5.2.10 access alexa apache api array beginner binary broken cakephp checkbox class clean clients cms code cron curl database date directory display dissertation dynamic echo echo$_get[x]changingitintovariable... email encode error fairness file files folder form forms function functions google href htaccess html image images include indentedsubcategory insert ip javascript joomla legislation limit link local login mail memberships menu mlm multiple multipletables mysql mysqlquery newsletters oop open paypal pdf persist php problem provider query radio random recursion remote rss script search server sessions sms sockets source space spam sql syntax system table tutorial update upload url validator variable video web youtube





