Im having trouble getting my SSI working with dreamweaver/php/apache.

I read here that i need to enable the SSI thru editing of httpd.conf file. I am supposed to enable these commands

AddType text/html .shtml
AddOutputFilter INCLUDES .shtml

I did that - i removed the #. Then I am supposed to add

Options +Includes

into the httpd.conf. I tried to add it at the end of the doc, restarted apache server - didnt work. I tried to add it just after the aforementioned 2 commands, also no luck.

Am I supposed to do something more than this or am i doing something wrong here??? No matter what i do, i always get this error when i preview a page with
<?php virtual("/includes/navigation.shtml"); ?>
include inside:

Warning: virtual() [function.virtual]: Unable to include '/includes/navigation.shtml' - request execution failed in C:\Inetpub\wwwroot\TestPHP\test-contact\contact.php on line 11

    Noticed that
    <?php virtual('/includes/navigation.shtml'); ?>
    displays the aforementioned error while
    <?php virtual('includes/navigation.shtml'); ?>
    works just fine.

    Function virtual() does not support site root relative paths?????????

      ok, figured it out already.. its all working now

        Write a Reply...