Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old December 27th, 2006, 06:52 PM
Authorized User
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default Chapter 9 - Error Document

I cant get the custom error document to work. I call the script (manually per the book for testing) and it works fine. I have it working at work - but i cant get it to work at home. So frustrating. I deflagged the IE Show Friendly Http Pages" option, i also changed my config. as such:

alias /error/ "C:/Program Files/xampp/apache/error/"

ErrorDocument 400 /error.php?400
ErrorDocument 401 /error.php?401
ErrorDocument 403 /error.php?403
ErrorDocument 404 /error.php?404
ErrorDocument 500 /error.php?500


(where my error page resides) - and all I get is the standard error message (etc. 403 - not found). Any ideas are greatly appreciated.

 
Old December 28th, 2006, 06:36 AM
Authorized User
 
Join Date: Oct 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

helo,

  i think your apache doesn't work thats why you got that error....

___________________________________
.::If you quit you loss, If you survive you win::.

.::JHANNY::.

 
Old December 28th, 2006, 01:03 PM
Authorized User
 
Join Date: Jul 2006
Posts: 15
Thanks: 0
Thanked 0 Times in 0 Posts
Default

My Apache works - i have been serving pages properly all the way up threw Chapter 9 (in thePHP/MY-SQL tutorial book) - so it has to be something else. Maybe a parm. flag in my Apache - any ideas? (Thanks in advance for any tips.)

 
Old December 28th, 2006, 01:42 PM
Authorized User
 
Join Date: Oct 2006
Posts: 60
Thanks: 0
Thanked 0 Times in 0 Posts
Default

hi,
  i think there is some program running in your computer and blocking to your apache sever... ive encouter that problem while ago....

_________________________________________
.::If you quit you loss, If you survive you win::.

.::JHANNY::.




 
Old December 29th, 2006, 12:12 AM
Authorized User
 
Join Date: Dec 2006
Posts: 21
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to paagle
Default

best idea
set error reporting to zero
error_REPORTING(0);
SIMPLE

---
Paagle
TEAM LEADER-Team Xuberance(http://www.xuberance.com)





Similar Threads
Thread Thread Starter Forum Replies Last Post
Xpath error in Document() bonekrusher XSLT 13 September 30th, 2006 02:39 AM
document.DocumentElement.RemoveChild Error jrbancroft C# 2005 2 August 7th, 2006 10:36 PM
'window.opener.document' error in IE Colleen Javascript How-To 1 July 25th, 2006 07:57 PM
Document Class pointer error bluebeta Visual C++ 3 July 5th, 2006 05:10 AM
XML document error jaffir BOOK: ASP.NET Website Programming Problem-Design-Solution 2 July 26th, 2005 12:21 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.