Well I think this is what you need :
fopen - open text file
fpassthru - get text from file and redirect it to output
Consult php manual for exactly how to use these 2 functions . I think it should work but just in case it doesn't check the See Also and read the user notes .