शब्दकोश · प्रोग्रामिंग

PHP

PHP is a server-side scripting language widely used for web development and the language behind WordPress and a large share of dynamic websites.

अपडेट: अक्टूबर 6, 2026

PHP is an open-source, server-side scripting language designed for web development. A PHP file is processed by the web server or PHP-FPM, which runs the code and sends the resulting HTML or JSON to the browser. The name originally stood for Personal Home Page and now recursively expands to "PHP: Hypertext Preprocessor".

Why it matters

PHP runs a very large portion of the web, including WordPress, Drupal and Magento, and it is supported by nearly every shared hosting plan. Modern PHP (version 8 and later) has types, attributes, enums and a JIT compiler, and frameworks such as Laravel and Symfony provide structured application development. Its history of inconsistent function names and insecure beginner code gave it a mixed reputation, but current practice is far stricter.

Example

<?php
$name = $_GET['name'] ?? 'guest';
echo "Hello, " . htmlspecialchars($name);

For ?name=Ana the page prints Hello, Ana. htmlspecialchars escapes the input so it cannot inject markup.

Common mistakes

  • Building SQL queries by concatenating user input instead of using prepared statements.
  • Echoing user data without escaping, which allows cross-site scripting.
  • Running an end-of-life PHP version that no longer gets security patches.

Get notified when this term updates

Plus occasional practical tips on uptime and monitoring, nothing else. Unsubscribe anytime.

यह पेज सामान्य जानकारी है, जिसे हमारी संपादकीय टीम ने लिखा है और दस्तावेज़ीकरण बदलने पर अपडेट किया जाता है। सर्वर और प्रदाता अलग-अलग होते हैं, इसलिए बदलाव पहले सुरक्षित तरीके से जाँचें। देखें: संपादकीय नीति और अस्वीकरण.