473,379 Members | 1,257 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

[error.php]Which location?

Hi,

I'm a newbie learning PHP APACHE MySQL from a manual.

I've reached the errors processing chapter, they made me type a nice
"error.php" file which handles errors 400, 403, 500, except they don't
say where to copy it.

I tried under c:\wamp\www\, c:\wamp\apache2\errors, but it doesn't
spark.

I modified httpd.conf that way:
Expand|Select|Wrap|Line Numbers
  1. ErrorDocument 400 /error.php?400
  2. ErrorDocument 401 /error.php?401
  3. ErrorDocument 403 /error.php?403
  4.  
I restarted the AMP services.

Any help would me much appreciated!!

Mar 27 '06 #1
2 1547
Rex
Try your DocumentRoot. Its probably set to "c:\wamp\apache2\htdocs"
but check your httpd.conf.

Also, the httpd.conf has commenting explaining what most directives do.
Try reading it as it can often help solve some confusion.

Mar 27 '06 #2
Hi,

Unfortunately this AMP distribution for windows does not haved an
\htdocs directory, although it is mentionned in httpd.conf.
I created this directory and copied error.php in it, but still get the
traditional error page 404.

I'll ask directly on the WAMP forum, they probably had an idea of their
own, not obvious for a newbie.

Many thanks for your reply.

Mar 27 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Adam | last post by:
Hello Everyone. I recently downloaded the PHP 4.3.2, I ran the installer, and did everything accordingly, setting IIS4 or higher, all the right things ( I think ). PHP is enabled as far as I...
5
by: Philip Ronan | last post by:
OK, here's my 2p worth: === Q. Why am I getting the error message 'Headers already sent'? A. PHP produces this error message when you try to set a header for a web page after you have already...
9
by: Bartosz Wegrzyn | last post by:
I need help with sessions. I createt set of web site for nav with authorization. first I go into main.php which looks like this: <?php //common functions include_once '../login/common.php';...
7
by: Donna Hawkins | last post by:
I want to use javascript to redirect to a URL which has been passed as a variable (in php). I have searched but cannot find any solution. I think this code is a basic redirect: <script...
2
by: Grey Knight | last post by:
Here's a problem which is driving me slowly insane. Using GCC version 3.3.1 on SuSE 9.0, I keep getting "undefined reference to `function'"-type errors for no apparent reason! It's driving me...
2
by: Sukh | last post by:
Hi, I am working on a form page (asp.net + c#). form is too long and in some cases we are validating it server side, if there is some invalid data in text box then form return from server side and...
7
by: Chris Theis | last post by:
Hi all, yesterday I did some porting of my code from the MSVC 7.1 compiler to GNU 3.3 and found the following typo flaw. Interestingly enough the code compiled and ran fine under MSVC but GCC...
16
by: lawrence k | last post by:
I've made it habit to check all returns in my code, and usually, on most projects, I'll have an error function that reports error messages to some central location. I recently worked on a project...
4
by: infoseekar | last post by:
HI Guys I am a beginner. I am trying to create a guestbook. I have the code for it and it is in three parts. Part 1 "dp.php" to open database and make connection Part 2 "index.php" which will...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.