WebmasterSite.net: PHP scripts to enable your creativity
WSN Links PHP Directory Software
PHP Scripts Webmaster Links Support Forums

Register | Forgot Password

PHP include formatting

Version: 3.20
printPrint


PHP include formatting
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 07/24/05 - 10:31 AM:
quote post
#1
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
Administrator
Avatar

Usergroup: Administrator
Joined: Dec 21, 2001
Location: Northern California
Total Topics: 57
Total Posts: 6316
Posted 07/24/05 - 04:23 PM:
quote post
#2
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.

"Do things you love doing, because then it ain't work. Don't do something you don't really enjoy, because you're never going to work hard enough at it." - Bob Young, founder of Red Hat
david
Forum Regular

Usergroup: Customer
Joined: Jun 22, 2005
Total Topics: 88
Total Posts: 304
Posted 07/24/05 - 04:34 PM:
quote post
#3
Yippeee! I have tried it all, but to put the quotation marks around the path...thx.

:)

(gotta learn php for myself, eh?) wink
Search thread for
Download thread as


You don't have permission to post.

Please login or register.

   
 
© 2008 Paul Knierim. All rights reserved.