Ssi Assistance

liunx

Guest
Hello,<br /><br />I had covered this issue on these forums about 6 monts ago. After a long vacation from web publishing, I went back to the post I made previously to address my SSI problems. After scouring the topic over and over, I just cannot get my SSI to function. I was sure whether I should continue the original post so I decided to start fresh and see if I can finally get this to work.<br /><br />Currently my problem is this: i am using Ikonboard for my web forums and I want to use the News feature, but for the life of me I cant get it to display. I am using dreamweaver for page creation and have tried doing this with an html page as well as a fresh php page to no avail. I insert <!--#include virtual="/exocet/ikonboard/iB_html/non-cgi/ssi/newsdata.txt" --> (exocet is a subdomain) and the tables show up in design view within Dreamweaver. I then upload the file as index.html and when I try to view it it shows up as blank. I have used the same procedure after creating a new php page and uploaded that as index.php with no results as well.<br /><br />I have checked my .htaccess files and in each directory this is what they read:<br /><br />AddHandler application/x-httpd-php .htm .html .shtml<br />Options Indexes FollowSymLinks Includes<br />AddType application/x-httpd-CGI .CGI<br />AddType text/x-server-parsed-html .html<br />AddType text/x-server-parsed-html .shtml<br /><br />I added the line AddHandler application/x-httpd-php .htm .html .shtml to the top line of my .htaccess file as directed in my previous post and I still cant get the darn thing to work.<br /><br />I had a full head of hair when I first attempted to accomplish this task and now I fear I may have to run out and buy some Rogaine if this problem persists. I was hoping that some kind soul could walk me thru this to finally get my news info on my homepage.<br /><br />Thanks for your patience.<br /><br />Edit:<br /><br />Concerning my .htaccess file, I found these instructions from the ikonboard forums, but when I tried that I got all kinds of errors and couldnt even access my index page:<br /><br />Place this where you want the news to appear on your page<br />Code Sample <br /><!--#include virtual="http://exocet.digitalpalatte.com/ikonboard/iB_html/non-cgi/ssi/newsdata.txt" --><br /><br />"The HTML file that must be renamed to end with SHTML and you need to modify your .htaccess file in your root dir as well. This is mine, for example:<br /><br />Code Sample <br />AddType text/x-server-parsed-html .shtml<br />AddType text/html .shtml<br />AddHandler server-parsed .shtml<br />DirectoryIndex index.shtml index.html "<!--content-->
With the .htaccess file as you currently have it, you're trying to get the server to parse an .html page twice - once for PHP and once for SSI, and I believe the server will only parse a file once. From the Apache server documentation:<br /><!--quoteo--><div class='quotetop'>QUOTE</div><div class='quotemain'><!--quotec-->Care should be taken when a file with multiple extensions gets associated with both a MIME-type and a handler. This will usually result in the request being by the module associated with the handler.<!--QuoteEnd--></div><!--QuoteEEnd--><br />Since .html files are associated with PHP as the handler (SSI is associated as a MIME-type), PHP will get to parse the .html page and it will not be parsed for SSI.<br /><br />If a page is being parsed by PHP, you don't really need to use SSI as PHP has equivalent commands built into it. For example, instead of this SSI command:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><!--#include virtual="http://exocet.digitalpalatte.com/ikonboard/iB_html/non-cgi/ssi/newsdata.txt" --><!--c2--></div><!--ec2--><br />...you can use this PHP command instead:<br /><!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1--><?php include 'http://exocet.digitalpalatte.com/ikonboard/iB_html/non-cgi/ssi/newsdata.txt'; ?><!--c2--></div><!--ec2--><br />Hope this helps...<!--content-->
 
Back
Top