What are common issues with file paths when using include() in PHP?

Common issues with file paths when using include() in PHP include incorrect paths, leading to errors such as "file not found" or "failed to open stream". To solve this, it's important to use the correct path to the file being included. You can use absolute paths or relative paths to ensure that the file is found and included correctly.

// Using absolute path
include('/path/to/your/file.php');

// Using relative path
include('folder/file.php');