"; } $SEND_MSG = ""; if ($_SESSION['s_user_id'] > 0) { $SEND_MSG = " Send MSG - ส่งข้อความด่วน ถึง $FNAME $LNAME"; } $template = $tp_trainer_gen; $fp = fopen($template,"r"); $HTML = fread($fp,filesize($template)); fclose($fp); $HTML = preg_replace("/\\$(\w+)/e","$$1",$HTML); echo $HTML; ob_end_flush(); exit; ob_end_flush(); #### end of program #### ##################################################################### #### Start sub program. Don't touch anything below #### ?>