Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

PHP Forum


You are currently viewing our PHP Forum as a guest. Please register to participate.
Login



Freelance Jobs

Reply
Old 07-05-2006, 08:54 PM php error checker
hobsdv's Avatar
Extreme Talker

Posts: 168
Trades: 0
is there a tool available for checking for errors in a php file/page
__________________
Elementary
Please login or register to view this content. Registration is FREE
hobsdv is offline
Reply With Quote
View Public Profile
 
 
Register now for full access!
Old 07-07-2006, 06:50 AM Re: php error checker
ibbo's Avatar
Super Spam Talker

Posts: 880
Location: Leeds UK
Trades: 0
You can get this functionality from a decent IDE like eclipse or Zend.

Failing that you can output error messages (line numbers etc) by inserting this line to the start of your php.
error_reporting(E_ALL);

Then any warnings error etc will be given on the page your running the script on.

Ibbo
__________________

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Please login or register to view this content. Registration is FREE

Linux user #349545 :
(GNU/Linux)iD8DBQBAzWjX+MZAIjBWXGURAmflAKCntuBbuKCWenpm XoA7LNydllVQOwCf
ibbo is offline
Reply With Quote
View Public Profile Visit ibbo's homepage!
 
Old 07-07-2006, 10:28 AM Re: php error checker
Novice Talker

Posts: 9
Trades: 0
Apache error logs list it if the page itself doesnt. Also running the file through php.exe is default verbose.
__________________

Please login or register to view this content. Registration is FREE
JimmyRcom is offline
Reply With Quote
View Public Profile Visit JimmyRcom's homepage!
 
Old 07-07-2006, 09:17 PM Re: php error checker
Average Talker

Posts: 15
Name: Jeffery Mandrake
Location: San Diego
Trades: 0
Also see helpful notes from php.net on error handling:
http://us3.php.net/manual/en/function.error-log.php

Be careful if you use email notifications for error reporting...

-J
__________________

Please login or register to view this content. Registration is FREE
-
Please login or register to view this content. Registration is FREE

~~~~~~~~~~~~~~~~~~~

Please login or register to view this content. Registration is FREE
cybernewsmaster is offline
Reply With Quote
View Public Profile Visit cybernewsmaster's homepage!
 
Reply     « Reply to php error checker
 

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off





   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML



Page generated in 0.19941 seconds with 12 queries