Display an HTML file - Joomla! Forum - community, help and support
my local pool league looking update website.
they have nuke modules need changing componant.
not sure how achieved
simple 1 first
written call html file
suggestions please
they have nuke modules need changing componant.
not sure how achieved
simple 1 first

written call html file
code: select all
<?php
if (!defined('module_file')) die ('you can\'t access file directly...');
require_once('mainfile.php');
$module_name = basename(dirname(__file__));
// use custom css in module
// place css file in themes/your_theme/style directory
// otherwise comment out
define ('rn_module_css','ssmain.css');
include('header.php');
// show/hide right side blocks true=show false=hide
define('index_file', true);
opentable();
// html file in modules/yourmodule/yourhtmlfile.html
// html file should contain what
// inbetween body tags
include('filename.html');
closetable();
include('footer.php');
?>
suggestions please
code: select all
$pathname = jpath_base . '/subdir/';
$filename = 'the_file.txt';
$thefilepath = $pathname . $filename;
$thefile = file_get_contents($thefilepath);
echo $thefile;
Comments
Post a Comment