>>I am trying to get my skins to call some SSI txt like the
>>left navigation, but I can't seem to get it to work.
>>Can this actually be done?
>It "can" be done, but you should have a server admin do it,
>as it is tricky and beyond my skills.
>The real answer is probably no. It has to do with how the
>server processes SSI and scripts, particularly the order. It
>has to process the SSI BEFORE the script so in can "include"
>the script. If you put an SSI tag in a script, the server
>will already have looked for SSI tags before running the
>Again, there is a work-around, but it will need to be done
>at the server admin level and I don't know what it is...
I wanted to revisit this and see if there are other ideas.
Here is what I have:
1. Navigation menus are set up in php files and called using
<?php include($_SERVER<'DOCUMENT_ROOT'>."/ssi/home-page-left-navigation.php"); ?>
This works great! The $_SERVER<'DOCUMENT_ROOT'> always makes sure that the right path is found regardless of what directory or sub-directory the call is made from.
2. I am calling fatbomb also from php from with in the static html page. i am using this call
<?php include($_SERVER<'DOCUMENT_ROOT'>."/search/search.cgi/?skin=blank&length=5&keywords=test+me"); ?>
I got the information to do this from Coding Forums. Here is my thread
However, here is the error I get (as listed in coding forums).
Warning: include(/user/public_html/search.cgi/?&keywords=test+code) : failed to open stream: Not a directory in /user/public_html/racing/index.html on line 121
Warning: include() : Failed opening '/user/public_html/search.cgi/?&keywords=test+code' for inclusion (include_path='.:/usr/lib/php:/usr/local/lib/php') in /user/public_html/racing/index.html on line 121
IGNORE the path to search.cgi.
I know the path is correct because If I go directly to the path, it works.
Now, the main reason, I want to be able to mix the two (for those who don't know) is the power of having the navigation update using ssi.
So. Any ideas?
Thanks and blessings,