Skip to main content

Posts

Showing posts with the label PHP errors

Introduction to PHP Errors (PHP class part 13 in Hindi )

PHP errors  Introduction to PHP Errors      जब भी आपके code में कोई error आती है तो PHP उसे एक report की तरह show करती है। जितनी भी errors PHP शो करती है वो किसी ना किसी type की होती है। ये सभी types PHP में constants के द्वारा represent किये गए है और इन सभी की value integer होती है। जब किसी constant की value 1 होती है तो वो error आपको शो होती है। और जब तक उस type की error नहीं आती है तब तक constant की value 0 रहती है। आइये इन error types के बारे में detail से जानने का प्रयास करते है। Types of PHP Errors    Constants Description E_Error ये एक रन टाइम error होती है। इससे program रुक जाता है। जैसे की memory allocation problem.      E_WARNING ये रन time warnings होती है इससे program रुकता नहीं है।    E_PARSE ये compile time parse errors होती है।   E_NOTICE ये run time में notice होता है की error generate हो सकती है।   E_CORE_ERROR ये वो error होती है जो PHP के startup में आती है।   E_CORE_WA...