homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

404 error handling with PHP & IIS
IIS displaying full error page path?

10+ Year Member

Msg#: 9569 posted 2:53 pm on Aug 9, 2005 (gmt 0)

I'm using a 404 script to handle errors and hand the user back off to a sensible page. This works fine under IIS5, Apache, but my host is using IIS6 (and php 4.3), and whenever the script is called into action, the user sees :


Has anybody seen this behaviour before? I can't replicate it on my local machine(s) - is it an IIS or PHP issue?

How can it be solved?




5+ Year Member

Msg#: 9569 posted 6:33 pm on Aug 9, 2005 (gmt 0)

I could be wrong, not knowing your script;
but I see a value with no variable name.

should it be

just a thought, and likely wrong since you said it worked before.

Are your register_globals on?


10+ Year Member

Msg#: 9569 posted 8:33 pm on Aug 9, 2005 (gmt 0)

Sorry, I should have been a bit more explicit.

I'm using a 404 page to help generate SEO friendly URLs, and then generate the page from the database. Its the poor mans way of doing it without the luxury of mod_rewrite.

In the past, i've done this in ASP, and the user never sees the 404 page, the browser continues to display the link as clicked on, rather than displaying the error page url. This is the desired behavior.

I've now implemented it in PHP instead, but on my live host, the user sees something like :
in the address bar - really *not* what I want!

I suspect it's down to the inept nature of my hosting provider, but I'd like to be sure - has anybody come across this before (with either PHP or ASP)?

<added>No, register globals aren't on</added>

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved