www.webdeveloper.com
Results 1 to 5 of 5

Thread: need some help with server side includes

  1. #1
    Join Date
    Oct 2005
    Posts
    45

    Question need some help with server side includes

    Hey everyone,

    Could use some help with a server side include:

    I want to include a calendar that is created with php (I think); the url is like this:

    http://text.site.com/folder/week.php...&area=1&room=2
    The pview is to only view the calendarpiece and not the rest of the page.

    I would like to incorporate this calendar in my page and thought i could use server side include for this, however ssi only seems to want to show things that are stored within my own server. The calendar is stored on a different server.
    I'm using IIS

    This is how i thought i could do it: (but failed miserably..)
    Code:
    <html>
    <head>
    
    </head>
    <body>
    
    blablablablablablabla
    
    <!--#include virtual="http://test.site.com/folder/week.php?pview=1$area=1&room=2"-->
    
    
    </body>
    </html>
    thanks for all the help i can get; also when it means i have to look for a different solution.

    Dimar

  2. #2
    Join Date
    Nov 2002
    Posts
    4,473
    I seriously doubt that server security would allow that. Sorry.

    Look for another solution.

  3. #3
    Join Date
    Oct 2005
    Posts
    45

    Question

    It is my own server, so i can change a lot of settings. The other server is maintained by someone i know, so probably could change some settings there too if needed.

    If this won't work; any ideas how i can do it?

    thanks!

  4. #4
    Join Date
    May 2006
    Location
    Sydney, Australia
    Posts
    125
    If you want to view this page in your site, why not try am <IFRAME>

    I dont think you can use a server include from a different machine, I guess the key word be a server side include. Is it possible to create a mapped network drive to the physical location of the file on the other server and then map to that.

    For example

    <!--#include virtual="c:/website/folder/week.php?pview=1$area=1&room=2"-->

    I also dont think (havent tried though) that you can pass query string parameters to an include.

  5. #5
    Join Date
    Jun 2006
    Posts
    7
    I agree with Vanny... why not use an <IFRAME> instead?
    This can pull the page from the other server.

    ** EDIT **
    i removed part of my comment
    Last edited by Freeky; 10-10-2006 at 02:31 AM.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles