Lost Password?

Go Back   CodeCall Programming Forum > Web Development Forum > PHP Forum

PHP Forum Use this forum to discuss all aspects of PHP Development. PHP is a server-side, cross-platform, HTML embedded scripting language that lets you create dynamic web pages.

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 05-06-2008, 03:11 PM
mgorgone mgorgone is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
mgorgone is on a distinguished road
Default "Cannot send session cache limiter - headers already sent"

Hi All,

I've been trying to figure this one out and everything on the web
points to "whitespace" being sent to the browser before the call to
session_start(); So here's my problem. I have two PHP pages,
searchresults.php and shoppingcart.php. The searchresults.php page
doesn't have any problems and runs fine. The shoppingcart.php page is
where I get the "Cannot send..." error. However, I created the
shoppingcart.php FROM the searchresults.php page which is, as I said
before, working without error. Both pages have calls to "echo" so I
just don't get why I'm having an issue with the shoppingcart.php page
when the page it was created from (searchresults.php) doesn't have any
problems.

The tops of the pages are identical as shown below:

searchresults.php
====
PHP Code:
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/movieposters.css" rel="stylesheet" type="text/css" />
        <link href="css/navigation.css" rel="stylesheet" type="text/css" />
        <script type="text/JavaScript" src="js/validation.js"></script>
        <title>Buy Movie Posters</title>
</head>
<body>
====

shoppingcart.php
====
PHP Code:
<?php session_start();?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://
www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <link href="css/movieposters.css" rel="stylesheet" type="text/css" />
        <link href="css/navigation.css" rel="stylesheet" type="text/css" />
        <script type="text/JavaScript" src="js/validation.js"></script>
        <title>Buy Movie Posters</title>
</head>
<body>
====

Thanks in advance for any help you can offer.

Cheers,

Mike

Last edited by Jordan; 05-06-2008 at 04:26 PM. Reason: Added code tags
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote

Sponsored Links
  #2 (permalink)  
Old 05-06-2008, 04:10 PM
mgorgone mgorgone is offline
Newbie
 
Join Date: May 2008
Posts: 2
Rep Power: 0
mgorgone is on a distinguished road
Default Re: "Cannot send session cache limiter - headers already sent"

I figured it out from a post I found elsewhere:

http://www.pragmattica.net/node/10

For my files that weren't working they were saved with the encoding set to UTF-8 and not ANSI. Once I saved the .php files as ANSI they started working.

Cheers,

Mike
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


All times are GMT -5. The time now is 01:52 PM.

Contest Stats

John ........ 167.00000
Xav ........ 164.00000
dargueta ........ 148.00000
gaylo565 ........ 18.00000
WingedPanther ........ 15.00000
|pH| ........ 15.00000
Johnnyboy ........ 3.00000
navghost ........ 1.00000

Contest Rules

Ads