Default Apache error handling from PHP?
Default Apache error handling from PHP?
am 12.05.2007 16:05:34 von imalone
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:
1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apach e
+php&rnum=2#aef01775d62de2a6>
Is there any way to do this?
--
imalone
Re: Default Apache error handling from PHP?
am 12.05.2007 17:20:51 von shimmyshack
On May 12, 3:05 pm, imalone 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:
>
> 1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apach e
> +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.lang.php/browse_thread/t hread/4ef05bc994cfc303/4b9547df003a7115?lnk=st&q=&rnum=32&hl =en#4b9547df003a7115
ps. your nickname makes me feel sad inside, unless your first name is
Ima.
Re: Default Apache error handling from PHP?
am 12.05.2007 21:19:14 von imalone
On May 12, 4:20 pm, shimmyshack wrote:
> On May 12, 3:05 pm, imalone 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.lang.php/browse_thr 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
Re: Default Apache error handling from PHP?
am 13.05.2007 00:17:29 von shimmyshack
On 12 May, 20:19, imalone wrote:
> On May 12, 4:20 pm, shimmyshack wrote:
>
> > On May 12, 3:05 pm, imalone 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.lang.php/browse_thr 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!!)
Re: Default Apache error handling from PHP?
am 14.05.2007 01:26:10 von Armand B
shimmyshack wrote:
> On May 12, 3:05 pm, imalone 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:
>>
>> 1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apach e
>> +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.lang.php/browse_thread/t hread/4ef05bc994cfc303/4b9547df003a7115?lnk=st&q=&rnum=32&hl =en#4b9547df003a7115
>
> ps. your nickname makes me feel sad inside, unless your first name is
> Ima.
>
Should this be a simple HEADER message generatet from PHP?
Re: Default Apache error handling from PHP?
am 14.05.2007 02:24:33 von shimmyshack
On May 14, 12:26 am, Armand Brahaj wrote:
> shimmyshack wrote:
> > On May 12, 3:05 pm, imalone 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:
> >>
> >> 1ca3371bf7601404/aef01775d62de2a6?lnk=st&q=default+404+apach e
> >> +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.lang.php/browse_thread/ 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)