Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

session_register error

Posted on 2008-06-16
2
Medium Priority
?
647 Views
Last Modified: 2008-06-16
Hi Experts

I am new to PHP programming.  I have this code in one of my php files

<?php
ob_start();
session_register("parentid");
session_register("userid");
session_register("userlevel");
session_register("username");
include('database.php');
ob_end_flush();
?>
<html>
<head>
...

When I run this file, I get this error.

Warning: session_register() [function.session-register]: Cannot send session cache limiter - headers already sent (output started at /home/aarrsoft/public_html/wiz/cvwiz.php:1) in /home/aarrsoft/public_html/cwiz/cvwiz.php on line 3

Please help me to resolve it

Thanks
0
Comment
Question by:rajesh_chd
2 Comments
 
LVL 49

Accepted Solution

by:
Roonaan earned 500 total points
ID: 21793255
Is there a space in front of your <?php token or an UTF BOM?
0
 
LVL 2

Author Comment

by:rajesh_chd
ID: 21793278
No there is no space... :)
Yes my editor was saving it as utf8, changed to ANSI.

Resolved

Thanks
0

Featured Post

Free Tool: SSL Checker

Scans your site and returns information about your SSL implementation and certificate. Helpful for debugging and validating your SSL configuration.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Build an array called $myWeek which will hold the array elements Today, Yesterday and then builds up the rest of the week by the name of the day going back 1 week.   (CODE) (CODE) Then you just need to pass your date to the function. If i…
This article discusses how to implement server side field validation and display customized error messages to the client.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will learn how to create a basic form using some HTML5 and PHP for later processing. Set up your basic HTML file. Open your form tag and set the method and action attributes.: (CODE) Set up your first few inputs one for the name and …
Suggested Courses

886 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question