suttercain Posted March 16, 2007 Share Posted March 16, 2007 Hi guys, I am reading a book and I cannot grasp the print file concept. I have a file named datebook and want to print it's contents via my broswer. How does one do this? Thanks for the help. Link to comment https://forums.phpfreaks.com/topic/43046-solved-how-to-print-a-file/ Share on other sites More sharing options...
per1os Posted March 16, 2007 Share Posted March 16, 2007 <?php $fp=fopen('datebook.txt', "r"); $size = 193840; // bytes $file = fread($fp, $size); fclose($fp); print $file; ?> Link to comment https://forums.phpfreaks.com/topic/43046-solved-how-to-print-a-file/#findComment-209087 Share on other sites More sharing options...
suttercain Posted March 16, 2007 Author Share Posted March 16, 2007 Thank you sir. Link to comment https://forums.phpfreaks.com/topic/43046-solved-how-to-print-a-file/#findComment-209092 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.