PHWinfo banniere

Titres
PORTAIL ANNUAIRE ARTICLES COMPARATEUR HÉBERGEURS DEVIS FORUMS RÉDUCTEUR D'URL
Précédent   PHWinfo > Forums Hébergement > Forum Serveur - Sécurité et techniques > alt.apache.configuration > Default Apache error handling from PHP?
S'inscrire FAQ Membres Recherche Messages du jour Marquer les forums comme lus
alt.apache.configuration Apache web server configuration issues.

Default Apache error handling from PHP?

Réponse
 
LinkBack Outils de la discussion
Vieux 12/05/2007, 15h05   #1
imalone
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Default Apache error handling from PHP?

Hi,

I'm starting to look at building a PHP based site which serves virtual
pages (possibly using Action/AddHandler) and I'd like to be able to
have PHP tell Apache to return its default 404. Every tutorial I've
seen uses its own 404 page, the closest I've found is:
<http://groups.google.co.uk/group/com...se_frm/thread/
1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apache
+php&rnum=2#aef01775d62de2a6>

Is there any way to do this?

--
imalone

  Réponse avec citation
Vieux 12/05/2007, 16h20   #2
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default Apache error handling from PHP?

On May 12, 3:05 pm, imalone <ibmal...@gmail.com> wrote:
> Hi,
>
> I'm starting to look at building a PHP based site which serves virtual
> pages (possibly using Action/AddHandler) and I'd like to be able to
> have PHP tell Apache to return its default 404. Every tutorial I've
> seen uses its own 404 page, the closest I've found is:
> <http://groups.google.co.uk/group/com...se_frm/thread/
> 1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apache
> +php&rnum=2#aef01775d62de2a6>
>
> Is there any way to do this?
>
> --
> imalone


your question came up in comp.lang.php 2 days ago, unfortunately the
answer is no, but who knows, php could change to include more apache
specific functions. They would be useful IMHO.
http://groups.google.com/group/comp....9547df003a7115

ps. your nickname makes me feel sad inside, unless your first name is
Ima.

  Réponse avec citation
Vieux 12/05/2007, 20h19   #3
imalone
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default Apache error handling from PHP?

On May 12, 4:20 pm, shimmyshack <matt.fa...@gmail.com> wrote:
> On May 12, 3:05 pm, imalone <ibmal...@gmail.com> wrote:


>
> > I'm starting to look at building a PHP based site which serves virtual
> > pages (possibly using Action/AddHandler) and I'd like to be able to
> > have PHP tell Apache to return its default 404.


> your question came up in comp.lang.php 2 days ago, unfortunately the


Sorry, I was beginning to suffer from search fatigue.

> answer is no, but who knows, php could change to include more apache
> specific functions. They would be useful IMHO.http://groups.google.com/group/comp....ead/thread/4ef...
>


Okay, thanks. It'll probably be good for me to try and do it myself
anyway.

> ps. your nickname makes me feel sad inside, unless your first name is
> Ima.


No need to feel sad, my first name is not Ima, but my surname is
Malone.

--
imalone

  Réponse avec citation
Vieux 12/05/2007, 23h17   #4
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default Apache error handling from PHP?

On 12 May, 20:19, imalone <ibmal...@gmail.com> wrote:
> On May 12, 4:20 pm, shimmyshack <matt.fa...@gmail.com> wrote:
>
> > On May 12, 3:05 pm, imalone <ibmal...@gmail.com> wrote:

>
> > > I'm starting to look at building a PHP based site which serves virtual
> > > pages (possibly using Action/AddHandler) and I'd like to be able to
> > > have PHP tell Apache to return its default 404.

> > your question came up in comp.lang.php 2 days ago, unfortunately the

>
> Sorry, I was beginning to suffer from search fatigue.
>
> > answer is no, but who knows, php could change to include more apache
> > specific functions. They would be useful IMHO.http://groups.google.com/group/comp....ead/thread/4ef...

>
> Okay, thanks. It'll probably be good for me to try and do it myself
> anyway.
>
> > ps. your nickname makes me feel sad inside, unless your first name is
> > Ima.

>
> No need to feel sad, my first name is not Ima, but my surname is
> Malone.
>
> --
> imalone


i realised 2ms after posting my ps. (sorry 4 bein so slow - doh!!)

  Réponse avec citation
Vieux 14/05/2007, 00h26   #5
Armand Brahaj
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default Apache error handling from PHP?

shimmyshack wrote:
> On May 12, 3:05 pm, imalone <ibmal...@gmail.com> wrote:
>> Hi,
>>
>> I'm starting to look at building a PHP based site which serves virtual
>> pages (possibly using Action/AddHandler) and I'd like to be able to
>> have PHP tell Apache to return its default 404. Every tutorial I've
>> seen uses its own 404 page, the closest I've found is:
>> <http://groups.google.co.uk/group/com...se_frm/thread/
>> 1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apache
>> +php&rnum=2#aef01775d62de2a6>
>>
>> Is there any way to do this?
>>
>> --
>> imalone

>
> your question came up in comp.lang.php 2 days ago, unfortunately the
> answer is no, but who knows, php could change to include more apache
> specific functions. They would be useful IMHO.
> http://groups.google.com/group/comp....9547df003a7115
>
> ps. your nickname makes me feel sad inside, unless your first name is
> Ima.
>

Should this be a simple HEADER message generatet from PHP?
  Réponse avec citation
Vieux 14/05/2007, 01h24   #6
shimmyshack
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: Default Apache error handling from PHP?

On May 14, 12:26 am, Armand Brahaj <a_bra...@yahoo.com> wrote:
> shimmyshack wrote:
> > On May 12, 3:05 pm, imalone <ibmal...@gmail.com> wrote:
> >> Hi,

>
> >> I'm starting to look at building a PHP based site which serves virtual
> >> pages (possibly using Action/AddHandler) and I'd like to be able to
> >> have PHP tell Apache to return its default 404. Every tutorial I've
> >> seen uses its own 404 page, the closest I've found is:
> >> <http://groups.google.co.uk/group/com...se_frm/thread/
> >> 1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apache
> >> +php&rnum=2#aef01775d62de2a6>

>
> >> Is there any way to do this?

>
> >> --
> >> imalone

>
> > your question came up in comp.lang.php 2 days ago, unfortunately the
> > answer is no, but who knows, php could change to include more apache
> > specific functions. They would be useful IMHO.
> >http://groups.google.com/group/comp....ead/thread/4ef...

>
> > ps. your nickname makes me feel sad inside, unless your first name is
> > Ima.

>
> Should this be a simple HEADER message generatet from PHP?


although the header can be sent, it doesn't notify apache to serve the
404, so the default apache error handlers never get invoked, and php
has to mimic the behaviour using php code. Perl can invoke apache
errors, php cant. (yet)

  Réponse avec citation
Réponse


Outils de la discussion

Règles de messages
Vous ne pouvez pas créer de nouvelles discussions
Vous ne pouvez pas envoyer des réponses
Vous ne pouvez pas envoyer des pièces jointes
Vous ne pouvez pas modifier vos messages

Les balises BB sont activées : oui
Les smileys sont activés : oui
La balise [IMG] est activée : oui
Le code HTML peut être employé : non
Trackbacks are oui
Pingbacks are oui
Refbacks are oui


Fuseau horaire GMT +1. Il est actuellement 15h03.


Édité par : vBulletin® version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.2.0 RC5 Tous droits réservés.
Version française #16 par l'association vBulletin francophone
PHWinfo est un site Éducation Sans Frontières
Ad Management by RedTyger
©Tous droits réservés par les parties respectives
Page generated in 0,16631 seconds with 14 queries