Answers to various technical questions on php programming, mysql, linux, and many more categories.
Home / Programming / php / How can I capture the contents of an included file?
How can I capture the contents of an included file?
Last updated: 06/30/2009
Usually, when you include a file in Php, any output generated by that script is printed out directly. However, if you'd like to capture it, say for sending an email message, you can do it like so: