Thierry Lavall�e wrote:
> Can YOU make a PHP run as custom error page?
 > Does it work?

Yes! Just to be sure the script was actually being executed (not just 
pulled from disk) I used phpinfo() and did a setup somewhat like this.

Inside the virtual directory "/web", I created a file called "404.php", 
and in the Properties for *that* subdirectory, I set the Custom Page for 
HTTP Error 404 to Type=URL, Location="/web/404.php".

It all worked as expected. The relevant parts from phpinfo() are as follows:

_ENV["QUERY_STRING"]    404;http://localhost/web/dfgdfg 
_ENV["REMOTE_ADDR"]     127.0.0.1       
_ENV["REMOTE_HOST"]     127.0.0.1       
_ENV["REQUEST_METHOD"]  GET     
_ENV["SCRIPT_NAME"]     /web/404.php    
_ENV["SERVER_NAME"]     localhost

Why doesn't it work for you? What exactly happens? Did you remember to 
change the Message Type to "URL" instead of the default "File"? Else, it 
won't know to execute that script.

Does it work for a simple phpinfo() page (to eliminate possible bugs in 
the PHP script itself)?

-M.


------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for your HP, Epson, Canon or Lexmark
Printer at MyInks.com.  Free s/h on orders $50 or more to the US & Canada.
http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/mOAaAA/3exGAA/qnsNAA/17folB/TM
---------------------------------------------------------------------~->

---------------------------------------------------------------------    
 Home       : http://groups.yahoo.com/group/active-server-pages
---------------------------------------------------------------------
 Post       : [EMAIL PROTECTED]
 Subscribe  : [EMAIL PROTECTED]
 Unsubscribe: [EMAIL PROTECTED]
--------------------------------------------------------------------- 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
     http://groups.yahoo.com/group/active-server-pages/

<*> To unsubscribe from this group, send an email to:
     [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
     http://docs.yahoo.com/info/terms/
 

Reply via email to