PHP 5.3 Errors with sessions and page dynamics

Status
Not open for further replies.

artfulme28

New Member
Messages
10
Reaction score
0
Points
0
Since the PHP update on the servers, I've been getting the error:
-----
Warning: session_start() [function.session-start]: Cannot send session cookie - headers already sent by (output started at /home/artfulme/public_html/index.php:1) in /home/artfulme/public_html/index.php on line 1

Warning: session_start() [function.session-start]: Cannot send session cache limiter - headers already sent (output started at /home/artfulme/public_html/index.php:1) in /home/artfulme/public_html/index.php on line 1

-----
Before the update, I never got those errors... Here's the first couple of lines for my index.php page (homepage) of http://www.artfulme.net:
PHP:
<?php session_start(); $_SESSION['loginreturn']="../index.php";  include("scripts/mysql.php"); ?>
<!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>
...(and so forth with the html)...
I get the same error on every page, but I have error reporting turned off on them (for the sake of my users). Thanks for any help in advance...
 
Status
Not open for further replies.
Top