Returning 404 (or any other code other than 500) does not make sense. If an
user sees a Page not found error, he probably won't bother and won't come
back / delete his bookmark. On the other hand, if a search engine bot
stumbles upon one of these, the page is automatically erased from the index,
no questions asked. Off-hand, I can see these two consequences, on top of
not respecting the HTTP standard.

This seems obvious but am I missing something ?

On 6/13/07, David Coallier <[EMAIL PROTECTED]> wrote:

On 6/13/07, Stanislav Malyshev <[EMAIL PROTECTED]> wrote:
> > Configuaratin option make sense, but PHP already has too many
configuration
> > options especialliy for error reprting.
> > I would like to avoid new ones.
>
> set_error_code(500) (or set_error_code(404)) might help?
> --

I am with set_error_code +1


> Stanislav Malyshev, Zend Products Engineer
> [EMAIL PROTECTED]  http://www.zend.com/
>
> --
> PHP Internals - PHP Runtime Development Mailing List
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


--
David Coallier,
Founder & Software Architect,
Agora Production (http://agoraproduction.com)
51.42.06.70.18

--
PHP Internals - PHP Runtime Development Mailing List
To unsubscribe, visit: http://www.php.net/unsub.php




--
Nicolas Bérard-Nault ([EMAIL PROTECTED])
Étudiant D.E.C. Sciences, Lettres & Arts
Cégep de Sherbrooke

Homepage: http://nicobn.googlepages.com

Reply via email to