RE: PHP attempting to parse non-existent files

From: Date: Wed, 03 Oct 2001 08:18:25 +0000
Subject: RE: PHP attempting to parse non-existent files
Groups: php.general 
Request: Send a blank email to php-general+get-69731@lists.php.net to get a copy of this message
these are all the php and error related lines in the httpd.conf ScriptAlias /php/ "E:/PHP40/" AddType application/x-httpd-php .php AddType application/x-httpd-php .html Action application/x-httpd-php "/php/php.exe" ... ErrorDocument 404 http://www.stivesdirect.com/error.html Tim Ward Senior Systems Engineer Please refer to the following disclaimer in respect of this message: http://www.stivesdirect.com/e-mail-disclaimer.html > -----Original Message----- > From: Richard Lynch [SMTP:ceo@l-i-e.com] > Sent: Wednesday, October 03, 2001 3:27 AM > To: Tim Ward > Cc: php-general@lists.php.net > Subject: Re: PHP attempting to parse non-existent files > > Your settings in httpd.conf to convince Apache to use PHP on .html files > does not correctly "pass the buck" to the error-handling in Apache... > > Post your php-related and error-related settings in httpd.conf > > -- > WARNING richard@zend.com address is an endangered species -- Use > ceo@l-i-e.com > Wanna help me out? Like Music? Buy a CD: > http://l-i-e.com/artists.htm > Volunteer a little time: http://chatmusic.com/volunteer.htm > ----- Original Message ----- > From: Tim Ward <tim.ward@stivesdirect.com> > Newsgroups: php.general > To: <php-general@lists.php.net> > Sent: Tuesday, September 25, 2001 10:21 AM > Subject: PHP attempting to parse non-existent files > > > > okay, I'll try again. The apache server our site runs on is set up to > parse > > .html files as php. If you pass a url of a non-existant file to the > server > > the client gets a php parse error back rather than a 404 error ... > > specifically: > > pass in > > http://www.sitename/fred.html > > and you get > > Fatal error: Unable to open e:\program files\apache > > group\apache\htdocs\dev\maintenance\fred.html in Unknown on line 0 > > pass in > > http://www.sitename/fred.htm (which apache hasn't > > been told to treat as > PHP) > > and you get the expected 404 error which I am well aware can be trapped > in > > apache. > > > > (n.b. http://www.sitename/bill/fred.html where bill is a > > non existant > > directory, gives the 404 error okay) > > > > Either this happens to everyone (which apparently it doesn't) or I've > got > > the configuration wrong somewhere in Apache or PHP. I've trawled through > the > > on-line documentation for both and haven't found anything relevant. I'm > a > > programmer not a network or web administrator, but here I'm all there > is. > > Any ideas what and/or where the problem is? > > > > Tim Ward > > Senior Systems Engineer > > > > Please refer to the following disclaimer in respect of this message: > > http://www.stivesdirect.com/e-mail-disclaimer.html > > > >

« previous php.general (#69731) next »