Re: Still executing afte die()?
| From: | Jason Wong | Date: | Sat, 04 Jan 2003 07:42:59 +0000 |
| Subject: | Re: Still executing afte die()? | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-130210@lists.php.net to get a copy of this message | ||
On Saturday 04 January 2003 13:44, Leif K-Brooks wrote:
As I understand it, your situation is this:
a) all your pages are named in lowercase
b) if someone tries to access a non-existent page on your site (eg using a URI
which is not fully lowercase) they'll hit your 404.php
> But I only want it to insert if the page was all lowercase when they
> went to it.
But if the page was all lowercase they wouldn't be hitting your 404.php page
in the first place? Or am I missing something?
> I understand it continuing after redirecting, but why after
> die()ing too? Putting the insert code into an else statment solved the
> problem, but it's ugly, and the question still remains... why does it do
> this?
It cannot continue after a die(), unless there's a bug in PHP. If you still
think that it does then post your full code and the circumstances under which
it happens.
--
Jason Wong -> Gremlins Associates -> www.gremlins.biz
Open Source Software Systems Integrators
* Web Design & Hosting * Internet & Intranet Applications Development *
/*
My nose feels like a bad Ronald Reagan movie ...
*/