What are some alternative methods to the PHP include function for including text files in a webpage?

The PHP include function is commonly used to include text files in a webpage, but there are alternative methods available. One alternative is to use file_get_contents() function to read the contents of a file and then echo it out in the webpage. Another option is to use readfile() function to output the contents of a file directly to the browser. These alternatives can be useful when you need more control over how the file contents are displayed in the webpage.

// Using file_get_contents() function to include a text file in a webpage
$file_contents = file_get_contents("textfile.txt");
echo $file_contents;
```

```php
// Using readfile() function to include a text file in a webpage
readfile("textfile.txt");