Re: header function
| From: | Christian Reiniger | Date: | Tue, 21 Aug 2001 20:29:54 +0000 |
| Subject: | Re: header function | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-63763@lists.php.net to get a copy of this message | ||
On Tuesday 21 August 2001 16:53, Jay Paulson wrote:
> 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?
(1) Add a space after the colon
(2) "Location:" should get a complete URL, i.e.
header ("Location: http://your.server.us/index.php");
> and have it hit the header() line and i get teh 404 page error.. (and
A 404 can't come from parse errors or something. It *does* redirect you,
but doesn't find the target file -> 404
--
Christian Reiniger
LGDC Webmaster (http://lgdc.sunsite.dk/)
Install once, run forever. Linux.