What are some common pitfalls to be aware of when using Xampp for PHP development?

One common pitfall when using Xampp for PHP development is forgetting to secure your database connection credentials. To avoid exposing sensitive information, it is important to store your credentials in a separate configuration file outside of the web root directory. This way, the credentials cannot be accessed directly by users browsing your website.

// config.php
<?php
$servername = "localhost";
$username = "root";
$password = "password";
$dbname = "database";

// index.php
<?php
include 'config.php';
// your PHP code here