🟢 Foundation  ·  Lesson 02

PHP Setup with XAMPP

PHP Setup with XAMPP

Setting Up PHP

The easiest way to run PHP on your computer is XAMPP — it bundles PHP, Apache (web server) and MySQL together.

Installation Steps

  1. Download XAMPP from apachefriends.org and install it.
  2. Open the XAMPP Control Panel and click Start for Apache and MySQL.
  3. Put your PHP files in the htdocs folder (e.g. C:/xampp/htdocs/).
  4. Open http://localhost/yourfile.php in the browser.

Test File

<?php
  echo "PHP is working!";
?>
PHP is working!

Summary

  • XAMPP bundles PHP + Apache + MySQL for local development.
  • Put files in htdocs and open via http://localhost/.

PHP Setup करना

अपने computer पर PHP चलाने का सबसे आसान तरीका XAMPP है — यह PHP, Apache (web server) और MySQL को एक साथ bundle करता है।

Installation Steps

  1. apachefriends.org से XAMPP download करके install करें।
  2. XAMPP Control Panel खोलकर Apache और MySQL के लिए Start दबाएं।
  3. अपनी PHP files htdocs folder में रखें (जैसे C:/xampp/htdocs/)।
  4. Browser में http://localhost/yourfile.php खोलें।

Test File

<?php
  echo "PHP is working!";
?>
PHP is working!

सारांश

  • XAMPP local development के लिए PHP + Apache + MySQL bundle करता है।
  • Files htdocs में रखें और http://localhost/ से खोलें।
← Back to PHP Tutorial
🔗

Share this topic with a friend

यह topic किसी दोस्त को भेजें

Found it useful? Send it to a classmate learning the same thing.

अच्छा लगा? जो दोस्त यही सीख रहा है, उसे भेज दीजिए।