Welcome to the IMTalk - Internet Marketing & SEO Forum.
  • Login:
+ Reply to Thread
Results 1 to 3 of 3
  1. #1
    Alan Smith is offline IM & SEO Weak Jaw Alan Smith will become famous soon enough
    Join Date
    Jul 2011
    Posts
    184
    Thanks Given
    0
    Thanked 63 Times in 53 Posts

    Let’s understand the different types of errors in PHP

    There are mainly four types of error in PHP

    Syntax error: This type of error occurs in PHP while there is a mistake in PHP syntax like missing semicolon, missing assignment, missing or extra parentheses, and missing curly braces.

    Fatal error: when an object calls a class that time class does not exist. These errors cause immediate cancellations of the system, and PHP's conventional activities are to demonstrate them to the user when they take place.

    Notice error: it is a non-critical error that PHP activates while booting a system. By default, such errors are not visible to the users.

    Warning error: when you use an incorrect number of parameters in a function, a warning error occurs. Warning errors are more serious like trying to include () a file which does not exist. These mistakes are shown to the user, but they do not result in program cancellations.
    Last edited by Alan Smith; 09-10-2012 at 10:08 AM.

  2. The Following User Says Thank You to Alan Smith For This Useful Post:


  3. #2
    wink0r's Avatar
    wink0r is offline Moderator wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold wink0r is a splendid one to behold
    Join Date
    Oct 2010
    Location
    East Coast, USA
    Posts
    2,183
    Thanks Given
    941
    Thanked 651 Times in 491 Posts
    These mistakes are shown to the user, but they do not result in program cancellations.
    HostMonster no longer shows the warning on the page. Warnings are written to an error log stored in the site root folder, but you have to download the error log to read the warnings. It was more convenient for trouble shooting by the developer when the warnings were displayed, but if a visitor happened upon the page the warnings are ugly.

  4. The Following User Says Thank You to wink0r For This Useful Post:


  5. #3
    Nemanja's Avatar
    Nemanja is offline IMTalk.org Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute Nemanja has a reputation beyond repute
    Join Date
    Jun 2010
    Location
    www
    Posts
    4,870
    Thanks Given
    703
    Thanked 3,044 Times in 1,247 Posts
    Quote Originally Posted by wink0r View Post
    HostMonster no longer shows the warning on the page. Warnings are written to an error log stored in the site root folder, but you have to download the error log to read the warnings. It was more convenient for trouble shooting by the developer when the warnings were displayed, but if a visitor happened upon the page the warnings are ugly.

    Not just ugly, they can be security wholes and great for hack attempts.
    It would be vise to disable error reporting on production server/site as well, off course when all things are tested.
    I always use this code on my all production scripts after they are tested:
    PHP Code:
    //for production server turn error reporting off if everythig is tested and working right, if you want to test turn it on or comment line below
    error_reporting); 

  6. The Following 2 Users Say Thank You to Nemanja For This Useful Post:



 

Similar Threads

  1. Site not found errors
    By comocomo in forum Suggestions, Feedback & Questions
    Replies: 1
    Last Post: 04-28-2012, 11:00 PM
  2. Site errors
    By vf8170 in forum Suggestions, Feedback & Questions
    Replies: 2
    Last Post: 04-24-2012, 02:17 PM
  3. Black Hat Vs. White Hat Types SEO
    By wisnu45 in forum General SEO Talk
    Replies: 27
    Last Post: 03-03-2012, 08:59 AM
  4. Let’s Share How to Earn Big Amazon’s Commission on Holiday
    By akira07 in forum Affiliate, CPC, CPA Programs
    Replies: 0
    Last Post: 12-12-2011, 01:36 AM
  5. Errors found while checking this document as HTML5!
    By luigar007 in forum Programming, Scripting, Database, Testing, Debugging...
    Replies: 5
    Last Post: 09-08-2011, 10:47 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts