Wrox Programmer Forums
|
BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6
This is the forum to discuss the Wrox book Beginning PHP, Apache, MySQLWeb Development by Michael K. Glass, Yann Le Scouarnec, Elizabeth Naramore, Gary Mailer, Jeremy Stolz, Jason Gerner; ISBN: 9780764557446
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: Beginning PHP, Apache, MySQL Web Development ISBN: 978-0-7645-5744-6 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 June 18th, 2004, 04:35 PM
Authorized User
 
Join Date: May 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default error codes, Chapter 8, Page 218

Page 218 tells us "Enter the following code:" and "save a page called error.php. Unfortunately, I can find no information as to which directory one is to save the file to. Actually, I've tried what I am able to think of and none work. First, one would think that it should be in the root directory (c:/Program Files/Apache Group/Apache2/test) and trying the directions in the book on page 219 to type into the browser address line "http//localhost/error.php?500" does work (and that's a no-brainer). However when trying to actually get the server to direct an actual error to this file for our error message (as in typing in the address line "http://localhost/asdf/qwerty/pqge.html" or any http://localhost/NoSuchPage.htm) the error page generated is the usual Apache not found error, not the error from error.php. In addition the following is reported Additionally, a 404 Not Found error was encountered while trying to use an ErrorDocument to handle the request.
Obviously, I don't have the error.php program where it should be. But where is that? I've tried also putting it in the "C:/Program Files/Apache Group/error" directory and (surprisingly) the "http//localhost/error.php?500" does work, but, again, the real error of a file that does not exist is not processed by error.php.
OK! What dumb mistake did I make????? Where should error.php be placed?

Thanks, in advance for the help.
JAH

 
Old June 19th, 2004, 11:02 AM
Authorized User
 
Join Date: May 2004
Posts: 10
Thanks: 0
Thanked 0 Times in 0 Posts
Default

Well, I don't know what happened, but upon trying again the server is now sending the errors to error.php which I have located in the root directory (c:/Program Files/Apache Group/Apache2/test). I restarted Apache (but I also did that numerous times before and it did not work) so I guess I did something in the wrong order (or maybe it takes restarting the machine).

Anyway, all is well and working as advertised.

JAH






Similar Threads
Thread Thread Starter Forum Replies Last Post
code on page 218 two select statements in one uvis130 BOOK: Access 2007 VBA Programmer's Reference ISBN: 978-0-470-04703-3 0 September 3rd, 2007 06:56 AM
Chapter 7 Try It Out page 218 drumdiva BOOK: Beginning Visual Basic 2005 ISBN: 978-0-7645-7401-6 3 March 19th, 2007 08:35 PM
Error: Chapter 3 (try it out) page 85 dea0303 BOOK: Beginning ASP.NET 2.0 BOOK VB ISBN: 978-0-7645-8850-1; C# ISBN: 978-0-470-04258-8 0 August 29th, 2006 05:47 PM
Bad Codes from Chapter 3 and on, Please Help! GraphicArmy BOOK: Beginning PHP4/PHP 5 ISBN: 978-0-7645-4364-7; v5 ISBN: 978-0-7645-5783-5 15 May 3rd, 2004 05:07 AM





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