What potential pitfalls should be considered when using absolute paths in a mini-CMS?

Using absolute paths in a mini-CMS can lead to issues when moving the website to a different server or domain. To avoid this, it's recommended to use relative paths instead. This way, the paths will remain consistent regardless of the server or domain changes.

// Example of using relative paths in a mini-CMS
$basePath = "/path/to/your/cms/";

// Include a file using relative path
include($basePath . "includes/header.php");