Webmastersite.net
Register Log In

PHP include formatting

Comments on PHP include formatting

david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Jul 24, 2005 - 1:31 PM:

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
Paul
developer

Usergroup: Administrator
Joined: Dec 20, 2001
Location: Diamond Springs, California

Total Topics: 61
Total Comments: 7868
Paul
Posted Jul 24, 2005 - 7:23 PM:

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.
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005

Total Topics: 91
Total Comments: 305
david
Posted Jul 24, 2005 - 7:34 PM:

Yippeee! I have tried it all, but to put the quotation marks around the path...thx.

smiling face

(gotta learn php for myself, eh?) wink
Search thread for
Download thread as
  • 0/5
  • 1
  • 2
  • 3
  • 4
  • 5



This thread is closed, so you cannot post a reply.