🟢 Foundation · Lesson 01
Introduction to PHP
Introduction to PHP
What is PHP?
PHP (Hypertext Preprocessor) is a popular server-side scripting language used to build dynamic websites and web apps. It runs on the server, generates HTML, and sends it to the browser. WordPress, Facebook (early) and millions of sites use PHP.
Why PHP is Popular
- Easy to learn and free/open-source.
- Works perfectly with MySQL databases.
- Runs on cheap shared hosting (like Hostinger).
- Powers WordPress, which runs over 40% of all websites.
How PHP Works
A PHP file runs on the server. The server processes the PHP code, builds an HTML page, and sends only HTML to the browser — the user never sees the PHP code.
Summary
- PHP is a server-side scripting language for dynamic websites.
- Free, easy, pairs with MySQL, powers WordPress.
PHP क्या है?
PHP (Hypertext Preprocessor) एक popular server-side scripting language है जो dynamic websites और web apps बनाने में use होती है। यह server पर चलती है, HTML बनाती है, और browser को भेजती है। WordPress, Facebook (शुरुआत में) और लाखों sites PHP use करती हैं।
PHP Popular क्यों है
- सीखने में आसान और free/open-source।
- MySQL databases के साथ बढ़िया काम करती है।
- सस्ती shared hosting (जैसे Hostinger) पर चलती है।
- WordPress चलाती है, जो 40% से ज़्यादा websites चलाता है।
PHP कैसे काम करती है
PHP file server पर चलती है। Server PHP code process करके HTML page बनाता है, और browser को सिर्फ HTML भेजता है — user को PHP code कभी नहीं दिखता।
सारांश
- PHP dynamic websites के लिए server-side scripting language है।
- Free, आसान, MySQL के साथ, WordPress चलाती है।
💻 Live Code Editor
Is page ki language (PHP) mein code likhein aur turant chalाएं — yahीं, bina kuch install kiye.Powered by OneCompiler. Agar editor na khule to yahान naye tab mein kholein.
💻 Live Code Editor
Is page ke program yahan ready hain — chalाएं, badlें aur seekhें. Bina kuch install kiye.
Powered by OneCompiler. Editor mein code apne aap aa jata hai — Run dabaakर output dekhें.
Agar load na ho to naye tab mein kholें.