Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 3 of 3

This is a discussion on SSI virtual/exec issues? in the Shared & Semi-Dedicated forum
I can't seem to get SSIs to work properly on my account... that or I am doing something incorrectly. Here is what I am trying ...

  1. #1
    JPC Member
    Join Date
    Aug 2002
    Posts
    10

    SSI virtual/exec issues?

    I can't seem to get SSIs to work properly on my account... that or I am doing something incorrectly.

    Here is what I am trying to do:

    I have a PHP script that contains all of the information for the navigation on my page. That way I use 1 script for all of the nav on my site. I pass a variable to the script so that it knows what page it is on, and shows the correct navigation state.

    In order to invoke the script I have been trying:


    Code:
     <!--#include virtual="/inc/nav.php" -->
    All I get is the same error:

    Code:
    [an error occurred while processing this directive]
    Do I need something enabled on my account or am I doing something wrong?

  2. #2
    Old Hillbilly Connie's Avatar
    Join Date
    Sep 2001
    Location
    Hills of Missouri
    Posts
    2,646
    What file extension does the page with the include have?

    Forum Moderators - Jag Staff

    Spam Whackers Blog - Dedicated to fighting Spam and providing General SEO Tips
    Organize your Kitchen or purchase Kitchen Accessories at Condells
    Ihelpyou Forum - Dedicated to "Best Practices" SEO

  3. #3
    JPC Member
    Join Date
    May 2003
    Location
    Canada
    Posts
    46
    Since you're actually seeing an SSI generated error message, it looks like the SSI part is OK.

    What about the file you're trying to include. Does it exist? Does it exist in the place the webserver is looking for it (i.e. is URL/path for that file correct)?

    You're including a PHP file. Could there be an error in the PHP script? If the PHP script fails you will probably get a error such as that.

    In any case, have a look in your error log file. Apache should log something there to indicate why the include failed. If it's a problem with the PHP script, turn on some debuggin then check the error log again.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •