Solved

session_register error

Posted on 2008-06-16
2
638 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 125 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

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

Introduction Many web sites contain image galleries; a common design for these galleries includes a page with a collection of thumbnail images.  You can click on each of the thumbnail images to see the larger version of the image.  This is easily i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

758 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now