Problem with server side includes

Hi - I have a page with two php includes which no longer display properly. They were fine when I set them up, and I haven't changed anything.  They don't display online - and also don't display on my local server (Apache).  I have identical code on other sites which does display properly, both on my server and online.  There's nothing wrong with the file paths as they display correctly on the DW display screen, and also on live display, so I'm completely baffled.
Can anyone shed any light?
Here's a sample page - http://www.lucidinsight.com/travelprev.shtml
The includes should both be displaying on the right side of the page (hence the two error messages)
Thanks!

Hi...contrary to all logic and expectations, shtml pages DO process php includes.  I appreciate that this seems very strange but I have several examples on my sites, with identical code to that already posted, and they work.  I have to use a .php file extension rather than .asp as this is required for the file to be read by an online CMS site - rather than change the page to a php file and have to amend the site navigation, I have gone with just changing the file extension.  This works for every single one of my sites except this one, and I can't see why, hence this question...
SW

Similar Messages

  • Problem in Server side includes using Tomcat

    Problem in Server side includes using Tomcat:
    I am trying out small programs in servlet.
    I get one example program for server side includes from net.
    The code is:
    <HTML>
    <HEAD><TITLE>Times!</TITLE></HEAD>
    <BODY>
    <P>
    The current time in London is!!! :
    <SERVLET CODE="CurrentTime" codebase="../servlet">
    <PARAM NAME="zone" VALUE="GMT">
    </SERVLET>
    </P>
    </BODY>
    </HTML>
    I placed this test.shtml file in tomcat-home/webapps/ROOT folder and i kept the servlet in WEB-INF/classes folder.
    I renamed the servlets-ssi.jar and i removed the comments for SSI in web.xml file.
    When i run the servlet separately, i am getting the correct result. But if i run shtml file with the URL : http://localhost:8080/Test.shtml,
    i am getting the result as:
    The current time in London is!!! :
    It is not invoking servlet program.
    CAN ANYONE HELP ON THIS!
    Thanks.

    Thanks...as u said I tried putting dir & found that
    my file was saved as Ch1Servlet.java.txt instead for
    Ch1Servlet.java......So that was a problem.Now I'm
    able to compile.Oh, yeah. Notepad will do that to you. I think when you save in Notepad if you put quotes around the name "Whatever.java" then it won't add the .txt.
    But on compiling I'm getting the following error
    package java.servlet.* does not exist
    package java.servlet.http.* does not exist
    package java.io.* does not exist
    Do u the reason for this??? The servlet stuff is java[b]x.servlet. For the io stuff, I don't know, I'd have to see your code. Either you have a typo or a corrupt installation.

  • Tabbed with Server Side Include

    Has anyone had any problems adding Server Side Include to the Spry Tabbed Pannels, everytime the I add a SSI to the tabbed content is locks up the tabs.
    Where the hell are to get support is this an interAKT, ADOBE or your on your own.

    Hello,
    I don't have an answer to your problem, because I've never tried this approach.
    However, I can tell you that this is an USER-TO-USER forum. If you need to request technical support from Adobe, you need to go here:
    http://www.adobe.com/go/support/
    regards,
    Ionut

  • Poriblems with Server Side Include

    I amtrying to convert to Spry Menus using SSI. into a template.  been beating my head against the wall on what can go in and what can't in an include fil but that turns out not be my big problem
    when in using Dredamweaver CS5   and  do a server side I have major issues at the differeent levels
    i have the file in a directory off the site root called  Includes
    the file i am trying to include
    using a page at the root level my statement using document relation is
    <!--#include file="Includes/Navbar.html" -->
    works fine   channg to site relation does not work   Ok so far so good
    however a page in a lower level director gets the dreaded
    [an error occurred while processing this directive]
    and i get an error
    [Sat Sep 01 16:51:42 2012] [error] [client 174.57.220.98] unable to include file "../Includes/Navbar.html" in parsed file /usr/local/www/kasdivi.com/blog/beachguide.html
    and also
    Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/memcache.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/memcache.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/apc.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/apc.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdf.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/pdf.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/memcache.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/memcache.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/apc.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/apc.so&quot;
    Unknown(0) : Warning - PHP Startup: Unable to load dynamic library '/usr/local/lib/php/20100525-debug/pdf.so' - Cannot open &quot;/usr/local/lib/php/20100525-debug/pdf.so&quot;
    the php errors don't seem mahor although they seem to have i have another iisue or are the related
    but that aside
    If I move the include file to the same level as the pade with approprirate include statement no problem it works
    if i move it to a subditrectory  then it doesn't work
    summary
    i can get SSI to work for page on the root level using Includes from a subdirectory
    but on other level I must have the include in the same directory with the page
    any thoughts??

    Your menu links are inside an include file.  There should be nothing else inside that file except the list tags, classes & hyperlinks.  Links are relative to the parent page(s) in which they will occur.
    All supporting scripts and CSS go inside the parent page -- in your case, the Template.dwt file.
    Local Files Panel:
         -Includes
              menu.html
              footer.html
         +Styles
         +SpryAssets
         -Templates
              main.dwt
         about.shtml
         contact.shtml
         index.shtml
         services.shtml
    Problems will occur if you use document relative link paths with pages that are located inside sub and sub-sub folders. Obviously, you want to avoid doing that.  For best results, keep all your site pages at root level.
    Hope this helps,
    Nancy O.

  • Problem with server side state saving ,JSF 1.1.1

    Hello,
    In my web.xml  the.STATE_SAVING_METHOD setting is s server
    <context-param>
            <param-name>javax.faces.STATE_SAVING_METHOD</param-name>
            <param-value>server</param-value>
        </context-param>
    for measurement of application security isn't not allow to change this parameter to client , so the problem  when i access for application and i open a new page via linker for print for example and i would access for my initial page to make change or modify my initial page it s no possible to make any modification because i have a empty bean , but if the state saving is a client i haven't a problem because a tree map is stored in client browser, so my version of JSF is 1.1.1 ,
    So can you explain the cause for his problem
    and what's the solution for my problem ?
    NB:i can't change the parameter for STATE_SAVING_METHOD for a client
    Thank you

    did you search this form, there were lot of discussions in the past about server side cookies, you may find an answer to your problem.
    alternate approache for sending a value from parent page to the pop up window.
    1. when opening the pop up pass the values along with the url (if the size of variable is small)
    alternatively you can store the value in a hidden form field in parent window and access the same from poup window using
    you can simple access the page one form field value in page 2 (pop up) by using the following code.
    window.opener.document.getElementById('hiddenformfieldid').value

  • Problem with server side cookie

    Hi, I have a problem with a server side cookie. I'm trying to store a cookie trough the  cl_bsp_server_side_cookie=>set_server_cookie method in the OnInitialitation event handler of a bsp (my bsp application is non mvc) and then to retrieve this cookie trough the  cl_bsp_server_side_cookie=>get_server_cookie method in the OnInputProcessing event handler of the same bsp. In this cookie i'm storing a internal table but i'm not getting it when i invoke the get_server_cookie method.
    This is the source code that i'm implementing:
    OnInitialitation:
    wa_comunnication_data-mobile = wa-mobile.
              wa_comunnication_data-telefono = wa-tel_number.
              wa_comunnication_data-email = wa-email.
              APPEND wa_comunnication_data to comunnication_data.
               cl_bsp_server_side_cookie=>set_server_cookie(
                  EXPORTING
                   name = 'cook_comunnication_data'
                   application_namespace = 'NONE'
                   application_name = 'NONE'
                   username = 'NONE'
                   session_id = runtime->session_id
                   data_value = comunnication_data
                   data_name = 'comunnication_data'
                   expiry_time_rel = 720 ).
    OnInputProcessing:
    cl_bsp_server_side_cookie=>get_server_cookie(
          EXPORTING
           name = 'cook_comunnication_data'
           application_namespace = 'NONE'
           application_name = 'NONE'
           username = 'NONE'
           session_id = runtime->session_id
           data_name = 'comunnication_data'
          CHANGING
           data_value = comunnication_data ).
         READ TABLE comunnication_data INDEX 1 INTO wa_comunnication_data.
    regards, marcel.

    Why do you need to use cookies in the same BSP Application?
    Try to use below:
        username              = sy-uname
        application_name      = runtime->application_name
        application_namespace = runtime->application_namespace
    <i>*reward each useful answer</i>
    Raja T
    Message was edited by:
            Raja Thangamani

  • Problem with Server-Side InitialContext

    The Weblogic 5.1 documentation states that to create a context from within a
    server-side object, all you need to do is issue the following statement:
    Context ctx = new InitialContext();
    That you do not need to specify a factory, or a provider URL; by default,
    the context will be created as a WebLogic context and will connect to the
    local naming service.
    I only get this to work when I am running from within an EJB. When I try
    this from a servlet, it doesn't work.
    I am running Weblogic 5.1 SP9 with JDK 1.3.1_02. Any ideas about what I may
    be doing wrong???

    Hi,
    runtime->session_id indicates the browser session not a windows session so as such there is nothing to prevent that except from preventing to open the app in the same browser again by eg testing on the session id
    Eddy

  • Need to get a spry menu to work on every page with Server Side Includes

    I've created such a menu and have pasted the code into its own PHP file and then added the include but it just comes out as a blob of code and links.  Any tips on how to do this?  Thanks.

    The following code was entered into a php file called topNav.php which was made reference to by another fiel.  the result looks like this:
    <ul id="MenuBar1" class="MenuBarHorizontal">
        <li><a href="/index.php">Home</a></li>
        <li><a href="/coming.php" class="MenuBarItemSubmenu">Resources</a>
          <ul>
            <li><a href="#">About Our Company</a></li>
          </ul>
        </li>
        <li><a href="/coming.php">Announcements</a></li>
        <li><a href="/coming.php" class="MenuBarItemSubmenu">FAQs</a>
          <ul>
            <li><a href="#">Human Resources</a></li>
            <li><a href="#">Compliance</a></li>
            <li><a href="/it/it_faq.php">IT Department</a></li>
            <li><a href="#">Editing/Publishing</a></li>
          </ul>
        </li>
        <li><a href="/coming.php" class="MenuBarItemSubmenu">Lounge</a>
          <ul>
            <li><a href="#">Event Photos</a></li>
            <li><a href="#">Wanted/For Sale</a></li>
          </ul>
        </li>
        <li><a href="/coming.php">New Employees</a></li>
      </ul>
      <script type="text/javascript">
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1", {imgDown:"SpryAssets/SpryMenuBarDownHover.gif", imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    </script>

  • Server-side includes in cs5

    have used all previous versions of dw. no prior problem with server-side includes. now, they are not showing up in design view. Yes, I have marked preferences to include hidden items/server side includes. any thoughts anyone?

    I set up a static test site.  It has no testing server defined - just a local site.  In that site I have two files -
    1.  include-test.html
    2.  /_inc/test.html
    Their contents are -
    INCLUDE-TEST.SHTML
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <p>This is a test of SSI.  The following paragraph is an HTML include -</p>
    <!--#include file="_inc/test.html" -->
    </body>
    </html>
    TEST.HTML
    <p>Ut aliquip ex ea commodo consequat. Duis aute irure dolor eu fugiat nulla pariatur. Sunt in culpa ullamco laboris nisi quis nostrud exercitation.</p>
    When I look at Design view for include-test.html, I can see the contents of the include file, and I can see it listed as a related file below the filename tabs:
    So, I'm at a loss....

  • Server-side includes not working

    Running CF9.x on Apache 2.2 Win 7.
    I inherited an older html multiple page site that we are breaking down into includes using html server-side includes:
    e.g. <!--#include file="includes/sidebar.html" -->,  and saving the page as a .html file, which is then <cfincluded> in a .cfm file.
    Is there a way to get <!--#include file="includes/sidebar.html" --> include working on a CF page? All I see is the contents of the page, but none of the sidebar.html, or header.html, etc.
    I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
    TIA,
    Doug

    I know I could switch to cfincludes, but the boss LOVES to muck around with the html side of things.
    All the more reason to do it, surely?
    But anyway...
    I've never used a server-side include, but it looks to me that they just load the file and return it at that position in the document.
    For CF code to be executed, the file needs to be REQUESTED, so it won't be a starter with server-side includes.
    Adam

  • SSI Server Side Includes searchable?

    I'm creating a site that uses Server Side Includes to pull
    content into pages. The client wants to include a Search function
    to the site. My question is can a search function not only find the
    SSI pages but pull them up directly?
    Please see
    http://www.trainride.org/mtm_index.shtml
    The 2nd line of the bottom navigation are links that pull
    content into the page with server side includes. Is there a way to
    search and load the content pulled in by the server side includes?
    Any help would REALLY be appreciated.
    Thanks in advance!

    Melissa,
    I believe that the search engines create their indexes using
    spiders
    that walk through all of the browser links in your site. The
    content of
    your SSIs get embedded into your page on the server, so there
    is no
    actual link by the time the page gets to the browser.
    So, I think you need to add a hyperlink to your SSI pages
    some (maybe
    hidden) place in your site so the spiders will find them.
    HTH,
    Randy
    > I'm creating a site that uses Server Side Includes to
    pull content into pages.
    > The client wants to include a Search function to the
    site. My question is can a
    > search function not only find the SSI pages but pull
    them up directly?
    > Please see
    http://www.trainride.org/mtm_index.shtml
    > The 2nd line of the bottom navigation are links that
    pull content into the
    > page with server side includes. Is there a way to search
    and load the content
    > pulled in by the server side includes?

  • Server Side Includes Don't Show Up?

    I support a web site and I've been maintaining it with DW (previous to CS3 and now I'm using CS3) and except for the home page, whenever I test a page locally on my PC, the content of the includes don't show up in the browser.  Once I upload them to the web site, they work fine.  I should point out that the home page is the only page in the root directory.  All the other pages are in a next level folder.  At the time I designed the web site, I thought this would help me organize things, but I regret doing it.  This has happened with the previous version and with CS3.
    Anyway, it's what I'm stuck with.  I've set up my local site without server access.  Given my situation, is there anyway to get the includes to work on my PC when I test the pages within DW?

    To summarize: I press F12 to start a browsing session and that page is displayed properly with server side includes.  While in that browsing session, I click on a link to another page, and that second page in the browsing session does not disply the server side includes.  When these pages are uploaded to the server, they work properly
    If you open one of the inner pages, and hit F12 can you see the includes on that page,,  or on any of the other inner pages when you browse to them individually?   I bet you can  :-)
    It's only when you try and go from the temp file to a properly name file that it doesn't work. There was a technote explaining this much better than Ican, but I just can't find it now.
    If you want to see the pages work as if they were on the server, that is going from page to page by clicking on individual links, you really need to set up a testing server on your machine.
    http://help.adobe.com/en_US/Dreamweaver/10.0_Using/WSc78c5058ca073340dcda9110b1f693f21-7b6 ba.html
    http://kb2.adobe.com/cps/191/tn_19165.html

  • Server side include problem in DW design mode

    I am having issues with one computer out of three...Using DW
    8 on Mac OS 10.4 Intel....
    I have a server-side include set up to contain my navigation
    (nav.shtml) inside of a DW template, and normally, the editable
    regions can be worked in and the SSI area comes up blank until the
    file is uploaded to the server (which is OK...).
    On the third computer, however, the SSI area is actually
    visible in DW, but the Editable Region containing the main content
    area doesn't even show up, therefore we cannot work on web pages on
    that computer. I know this must be a setting having to do with
    using DW and a Mac as a web server, but I cannot find it! Anyone
    have any clues?
    Thanks so much!

    Can you describe teh details of the problem, please?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Phil Cornish" <[email protected]> wrote in
    message
    news:g8eosb$ijq$[email protected]..
    >I have this same problem on a Win XP
    machine...HELP!!!!!!!!!!

  • Server Side Includes not rendering correctly in Firefox with Layers

    Hi
    The server side includes are not correctly rendering with layers in firefox. From my site here:-
    http://www.osteriastecca.com/index.php
    the home_page.php content renders above a layer on the index.php page. Initially I thought this might be a Flash layer issue but the wmode is set correctly to transparent and it works fine with a normal ssi. It also works fine in Firefox without a server side include as you can see here:-
    http://www.osteriastecca.com/index_old.php
    Works fine in IE and Safari, but not Firefox.
    How can this be rectified?
    Regards
    Glennyboy

    What testing server setup do you have? Are you using something like WAMP?
    What do you see on screen which tells you the SSIs are not rendering? Any error message?

  • Server Side Includes with Server Behaviors

    Is it possible to include pages that have server behaviors attached to them, or are these behaviors limited to pulling in just plain html from the included pages?
    For example, I want two pages, index.php and login.php.
    I want the login.php page to have all of the user login behaviors/links/fields/buttons/etc. and then Include that on the index.php page. Am I supposed to be able to do this using ADDT server side includes?
    I've been successful using server side includes to include static text on a page, but not dynamic content with behaviors attached. I'm not sure if I'm just have a mistake, or if this won't work in the first place.
    thanks!

    Hi,
    this is generally possible, as the included files sure can have their own server hehaviours -- did that several times, where the "container" page had about no server behaviours embedded, but the included file did.
    ADDT´s server side includes will, loosely said, basically just "dynamically" strip the included document´s "head", but leave other components like server behaviours untouched
    Cheers,
    Günter Schenk
    Adobe Community Expert, Dreamweaver

Maybe you are looking for