[PHP] RE: PHP attempting to parse non-existent files

2001-10-03 Thread Tim Ward

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:[EMAIL PROTECTED]]
 Sent: Wednesday, October 03, 2001 3:27 AM
 To:   Tim Ward
 Cc:   [EMAIL PROTECTED]
 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 [EMAIL PROTECTED] address is an endangered species -- Use
 [EMAIL PROTECTED]
 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 [EMAIL PROTECTED]
 Newsgroups: php.general
 To: [EMAIL PROTECTED]
 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
 
 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]




[PHP] Re: PHP attempting to parse non-existent files

2001-10-02 Thread Richard Lynch

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 [EMAIL PROTECTED] address is an endangered species -- Use
[EMAIL PROTECTED]
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 [EMAIL PROTECTED]
Newsgroups: php.general
To: [EMAIL PROTECTED]
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




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]