Created php class to allow embedding of files in divs.

Note: you need to provide the div. File returns an <object> tag for pdf and a <p> tag for txt.