[PHP-DEV] Apache specific problem..

2002-01-30 Thread Marco Kaiser

Hi Dev-Crew,

just a question.
Its possible to produce any Apache error?

Here an example.
I have a Download Manage script.

dl_manager.php?filename=test1.zip

so i will test with my script if the file are on my path.
If it not there i will give the error handling back to
Apache.
So that i can use .htaccess ErrorDocument 403 or 404.
Currently i checked the doc stuff and didnt found any usable
function
for this. (http://www.php.net/manual/de/ref.apache.php)

Btw. I can talk with other mod_ files so i hope its possible
to do this
simple step. :)


-- Regards Marco



-- 
PHP Development 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]




Re: [PHP-DEV] Apache specific problem..

2002-01-30 Thread Daniel Lorch

Hi,

 just a question.
 Its possible to produce any Apache error?
 [..]
 dl_manager.php?filename=test1.zip
 [..]

if(file_exists($filename)) {
   [..]
}
else {

  Header(HTTP/1.0 404 Not Found);

?!DOCTYPE HTML PUBLIC -//IETF//DTD HTML 2.0//EN
HTMLHEAD
TITLE404 Not Found/TITLE
/HEADBODY
H1Not Found/H1
The requested URL ?php echo $filename; ? was not found on this server.P
/BODY/HTML
?php

}

It's not actually called an apache error, it's actually an HTTP Response
code. Check the RFC for further information.

By the way, you're on the wrong list :) There's a PHP General list for
questions like this.

Kind Regards,
  Daniel Lorch



-- 
PHP Development 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]