By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
437,751 Members | 1,149 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 437,751 IT Pros & Developers. It's quick & easy.

Loading a php file in a template

P: n/a
I would like to include a file that is generated by an php script. I
am currently loading a html template:
my $template = HTML::Template->new(filename =>
"template/mainpage.template",
die_on_bad_params => 0);

And in mainpage.template I have the line:

..
..
..

<TMPL_INCLUDE NAME="myfile.html">

..
..
..
Instead of myfile.html loading I would like to load the html generated
by myfile.php. Is there a way to do this?
Chris
Jul 17 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
cc****@cisunix.unh.edu (Chris) wrote in message
news:<cd**************************@posting.google. com>...

I would like to include a file that is generated by an php script.


Easy:

readfile('http://localhost/path/to/your/script.php');

Cheers,
NC
Jul 17 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.