By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
438,664 Members | 1,643 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 438,664 IT Pros & Developers. It's quick & easy.

how to php error handling...

P: 1
hi,
i am using WAMP in localhost...
can anyone help about how to handle PHP error?
Sep 17 '08 #1
Share this Question
Share on Google+
5 Replies


Atli
Expert 5K+
P: 5,058
Hi.

That depends... what is the error?
It would also help to see the portion of your code that is generating the error.
Sep 17 '08 #2

Markus
Expert 5K+
P: 6,050
You handle PHP errors by fixing them.

:P

Also, as a note, you can use the '@' sign to surpress errors you know won't affect the rest of the program.
Sep 17 '08 #3

100+
P: 258
Hi
If you want to hide any error messages shown by php put this line on top of your code
Expand|Select|Wrap|Line Numbers
  1. ini_set("display_errors","0");
  2.  
or if you have access to PHP.INI then change the value of "display_errors" to OFF
Sep 17 '08 #4

Markus
Expert 5K+
P: 6,050
Hi
If you want to hide any error messages shown by php put this line on top of your code
Expand|Select|Wrap|Line Numbers
  1. ini_set("display_errors","0");
  2.  
or if you have access to PHP.INI then change the value of "display_errors" to OFF
Not a very responsible thing to do, IMHO.
Sep 17 '08 #5

pbmods
Expert 5K+
P: 5,821
Heya, OpenXMod.

Check out this article.
Sep 18 '08 #6

Post your reply

Sign in to post your reply or Sign up for a free account.