Forum Moderators: coopster

Message Too Old, No Replies

Cannot modify header information - headers already sent by

Php Error

         

MarceloPG

12:30 am on Jan 20, 2005 (gmt 0)

10+ Year Member



Hi, I have the following error, and need your help please with a sample, the error is the following:

Warning: Cannot modify header information - headers already sent by (output started at /home/onewayu/public_html/settings.php:15) in /home/onewayu/public_html/member.php on line 5

and the first lines are bellow

<?php
require "settings.php";
require "lib/mysql.lib";
$r = q("select status, rdate from members where id='$auth' and pswd='$pass'");
if(e($r)) header("Location: login.php");
q("update profiles set ldate='".strtotime(date("d M Y H:i:s"))."' where id='$auth'");

I don't understand if the header is not in the right place or where to put it.

Thanks!
Marcelo

Timotheos

12:35 am on Jan 20, 2005 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



Hi MarceloPG and welcome to WebmasterWorld!

You have something in your settings.php file that is outputing something. Could be just a space that could cause this problem.

Tim

MarceloPG

2:31 am on Jan 22, 2005 (gmt 0)

10+ Year Member



Thanks so much Master, I can't believe, I was breaking my head, and it was only a few spaces in the settings. I'm learning little by little.

thanks again!
Marcelo