You're right when you say that you shouldn't put an echo before the header..
however I did that just so I could see if I would get the error "All headers
have been sent" and well I didn't get that error... I didn't get any error
message.. so I thought that was strange and that's why I'm here asking this
question because I really don't know what's going on.. I have checked the
web server error log and when I call the header function it tries to
redirect me to a ".php" file (notice there is no file name).  So I'm not
sure what exactly is going on.

[Mon Aug 20 17:23:03 2001] [error] [client 64.132.13.114] File does not
exist: /home/username/htdocs/admin/.php


----- Original Message -----
From: "Tyler Longren" <[EMAIL PROTECTED]>
To: "Jay Paulson" <[EMAIL PROTECTED]>
Cc: <[EMAIL PROTECTED]>
Sent: Tuesday, August 21, 2001 9:54 AM
Subject: Re: [PHP] header function


> Well, it's not a good idea to put something (like an echo) before a
> header()...even for testing because that will prevent the header() from
> working at all.  You should have gotten an "All headers have been sent" or
> some similar error.
>
> --
> Tyler Longren
> Captain Jack Communications
> [EMAIL PROTECTED]
> www.captainjack.com
>
>
>
> On Tue, 21 Aug 2001 09:53:42 -0500
> "Jay Paulson" <[EMAIL PROTECTED]> wrote:
>
> > Hello everyone-
> >
> > I have a slight problem.. I'm running php 4.0.6 on RedHat 7.1 and I run
> > my
> > script and it hit's:
> >
> > header("Location:index.php");
> >
> > well the thing is once it hits that line in my script and just fails,
> > however i don't get any type of parse error the browser just says 404
> > error
> > page not found... could it be i forgot to add something when i
> > configured
> > and installed php on my machine?
> >
> > i'm really losted here cause i can put an echo "blah"; before it or
> > after it
> > and it will print out just fine.. but comment out that echo and have it
> > hit
> > the header() line and i get teh 404 page error.. (and yes i've double
> > and
> > tripled checked that all the files etc are there it's just not doing the
> > header function for some reason)
> >
> > Thanks!
> > Jay
> >
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> > To contact the list administrators, e-mail: [EMAIL PROTECTED]
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> To contact the list administrators, e-mail: [EMAIL PROTECTED]
>


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to