PDA

View Full Version : Having some trouble with Newspro and SSI's! help!


MuNkY
1-6-02, 08:38 AM
Okay.. heres the situation.. im trying to use newspro.. and uh.. well it isnt working.. if you dont know what news pro is, it's a cgi program that compiles news posted by users to one file, the news.txt file.. and im trying to include this on my site.. and yes.. it is names .shtml :)


my news.txt is located at "http://teamkorn.tv/news.txt"
the include on my page is "<!--#include virtual="news.txt" -->"

the .shtml file is located at http://teamkorn.tv/news.shtml

does this look right to you? i cant get it to work.. hmm.. keeps giving me the error "[an error occurred while processing this directive]"

any help would be appreciated.. thanks!

SimCoWeb
1-6-02, 11:05 AM
Here's the excerpt from the Newspro install info:

To include your news in your page, insert the following code
into your page where you want the news to be:

<!--#include virtual="news.txt" -->

This assumes that news.txt is in the same directory as your page.
If news.txt
is, for instance, located at
http://www.mysite.com/mypage/cgi-bin/newspro/news.txt, and the file you're
including it in is in any other directory on your site, use:

<!--#include virtual="/mypage/cgi-bin/newspro/news.txt" -->

NOTE: When using server-side includes and "#include virtual", do not use
absolute paths. Simply use the URL of the page, minus http://www.mysite.com, as
in the example above. If you do need to use absolute paths, use "#include file"
instead.

runriot
1-6-02, 08:27 PM
Make sure that the news.txt is being generated in your htdocs dir. If its not, then Newspro WILL NOT WORK! Spernt a good amount of time fixing this same issue. The news.txt and your page with the Includes CANNOT remain in the CGI-BIN dir.
Make sure you have the proper absolute paths listed in the options section of newspro.

GL, mang