Siksha Sarovar

Siksha Sarovar (sikshasarovar.com) is a free educational web application that helps students in India learn programming and prepare for academic and competitive exams. The platform offers structured coding courses (C, C++, Python, Java, HTML, CSS, PHP, Power BI, AI, Machine Learning, Data Science), complete university curriculum notes for BCA/MCA students with previous year question papers, Class 10 and Class 12 CBSE/HBSE school notes, and dedicated preparation material for SSC, UPSC, Banking, Railway and other government exams. Browsing the site is completely free and requires no account. Users may optionally sign in with Google solely to save their learning progress, quiz scores and personal preferences across devices.

Privacy Policy | Terms of Service | Contact Siksha Sarovar | About Siksha Sarovar

v4.0.9 · PWA
Siksha Sarovar logo
Siksha Sarovar
Your Learning Universe

Siksha Sarovar is a free e-learning platform for coding courses, BCA university notes and competitive exam preparation. Optional Google sign-in saves your learning progress across devices.

Initializing knowledge base…
Compiling modules 0%

4. Configuration & Errors

Lesson 4 of 29 in the free PHP Programming notes on Siksha Sarovar, written by Rohit Jangra.

Configuration Settings (php.ini)

PHP behavior is controlled using the php.ini configuration file.

Common Configuration Settings

SettingDescription
display_errorsShows errors on screen
error_reportingControls error level
max_execution_timeScript execution time
memory_limitMemory usage limit
file_uploadsEnable file uploads

Example

display_errors = On
error_reporting = E_ALL
Exam Tip: php.ini is used to configure PHP settings globally.

---

Error Types in PHP

Errors occur when PHP encounters a problem while executing code.

1. Notice Errors

  • Minor errors
  • Do not stop script execution
echo $x;

2. Warning Errors

  • More serious than notices
  • Script continues execution
include("file.php");

3. Fatal Errors

  • Critical errors
  • Script stops execution
undefinedFunction();

4. Parse Errors

  • Syntax errors
  • Occur before execution
echo "Hello

Error Type Summary Table

Error TypeExecution
NoticeContinues
WarningContinues
FatalStops
ParseStops
Exam Line: Fatal and parse errors stop script execution.