acctman Posted September 15, 2008 Share Posted September 15, 2008 How would I print a files content to a variable? I have a file reg_confirm.tpl that has HTML inside and I want the content stored in a $message variable for inputting into the mail() function Link to comment https://forums.phpfreaks.com/topic/124268-outputting-file-content-to-a-variable/ Share on other sites More sharing options...
kpasiva Posted September 15, 2008 Share Posted September 15, 2008 Use, $message = file_get_contents('reg_confirm.tpl'); Link to comment https://forums.phpfreaks.com/topic/124268-outputting-file-content-to-a-variable/#findComment-641863 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.