Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
QUESTION external text file
#2
You could add something like this in your template.php file:

Code:
$file = '/path/to/your/file.txt';
if(file_exists($file)) {
   $content = htmlspecialchars(file_get_contents($file), ENT_COMPAT, 'utf-8', false);
   echo $content;
} else {
   echo 'Error: '  .$file. 'does not exists'
}
Reply


Messages In This Thread
external text file - by bmdt - 2016-05-06, 17:56:00
RE: external text file - by Bigin - 2016-05-06, 18:31:33
RE: external text file - by jwzumwalt - 2016-05-07, 01:37:47
RE: external text file - by Bigin - 2016-05-07, 03:12:01
RE: external text file - by jwzumwalt - 2016-05-08, 00:47:33
RE: external text file - by shawn_a - 2016-05-07, 04:25:25
RE: external text file - by shawn_a - 2016-05-08, 00:55:16



Users browsing this thread: 1 Guest(s)