What are common pitfalls when using the include function in PHP?

Common pitfalls when using the include function in PHP include file not found errors, which can occur if the specified file path is incorrect or the file does not exist. To solve this issue, always double-check the file path and ensure that the file you are trying to include actually exists in the specified location.

// Incorrect file path causing include file not found error
include('path/to/incorrect/file.php');
```

```php
// Correcting the file path to include the correct file
include('path/to/correct/file.php');