Course Content
About Lesson

Running Your First PHP File

  • Save file as hello.php in htdocs folder (if using XAMPP).
  • Start Apache server from XAMPP Control Panel.
  • Open browser → go to: http://localhost/hello.php
  • xample (hello.php):
PHP
<?php
echo "Welcome to PHP!";
?>

    Welcome to PHP!