I am trying to include a small php script in the wrapper template, which displays my RSS news. I cannot figure how to format this. Right now, on a normal html page, I format this include like this:
<!--#include virtual="../rss2html2.php" -->
But how would I format this in the wrapper? I have tried everything looked at the other posts and nothing seems to work. Also, where should I store this php and its corresponding little html template? In the templates/default directory, or right in the main wsnlinks directory?
Comments on PHP include formatting
Forum Regular
Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 91
Total Comments: 305
Hey Paul,
I am trying to include a small php script in the wrapper template, which displays my RSS news. I cannot figure how to format this. Right now, on a normal html page, I format this include like this:
<!--#include virtual="../rss2html2.php" -->
But how would I format this in the wrapper? I have tried everything looked at the other posts and nothing seems to work. Also, where should I store this php and its corresponding little html template? In the templates/default directory, or right in the main wsnlinks directory?
Thanks
David
developer
Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California
Total Topics: 61
Total Comments: 7868
That's not PHP, that's SSI. PHP would be <?php include("../rss2html2.php"); ?>
As for where you place your files, that would be something you have to answer for yourself. I don't know where you prefer your files to be.
Forum Regular
Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 91
Total Comments: 305
Yippeee! I have tried it all, but to put the quotation marks around the path...thx.
(gotta learn php for myself, eh?)